C. 公约数

    problem_type.remote_judge 2000ms 512MiB

公约数

The contest is ended. New submissions will be treated as correction submissions and will not be counted in the contest.

题目描述

给定一个正整数 aa,请找到三个正整数 b,c,db,c,d 使得 b,c,d1634826193b,c,d\le 1634826193a+b+c+d=gcd(a,b)+lcm(c,d)a+b+c+d=\gcd(a,b)+\operatorname{lcm}(c,d)

输入格式

本题采用多测。

第一行一个正整数 TT 表示测试数据数据组数。

接下来 TT 行每行一个正整数 aa,含义见题目描述。

输出格式

输出 TT 行,每行三个正整数 b,c,db,c,d

如有多种可能的答案,输出任意一种答案均判为正确。

1
10
3 3 4

提示

数据范围

测试点编号 分数 TT\le aa\le 特殊性质
11 22 1010
22 55 5050
33 1717 10610^6 5×1085\times10^8
44 2929 10910^9 aa 为奇数
55 4747 2×1062\times10^6

对于 100%100\% 的数据,1T2×1061\le T\le2\times10^61a1091\le a\le 10^9

提示:1634826193\bold{1634826193} 略大于 3×229\bold{3\times2^{29}}

CSP-J组模拟赛1

참가함
결과
완료 (참가함)
규칙
IOI
문제
4
시작 시각
2025-9-2 19:00
End at
2025-9-2 21:00
지속시간
2 시간
호스트
참여자
39