解密
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
给定一个正整数 ,有 次询问,每次给定三个正整数 ,求两个正整数 ,使 、。
输入格式
第一行一个正整数 ,表示有 次询问。
接下来 行,第 行三个正整数 。
输出格式
输出 行,每行两个正整数 表示答案。
为使输出统一,你应当保证 。
如果无解,请输出 NO
。
样例 #1
样例输入 #1
10
770 77 5
633 1 211
545 1 499
683 3 227
858 3 257
723 37 13
572 26 11
867 17 17
829 3 263
528 4 109
样例输出 #1
2 385
NO
NO
NO
11 78
3 241
2 286
NO
NO
6 88
提示
【样例 #2】
见附件中的 decode/decode2.in
与 decode/decode2.ans
。
【样例 #3】
见附件中的 decode/decode3.in
与 decode/decode3.ans
。
【样例 #4】
见附件中的 decode/decode4.in
与 decode/decode4.ans
。
【数据范围】
以下记 。
保证对于 的数据,,对于任意的 ,, ,。
测试点编号 | 特殊性质 | |||
---|---|---|---|---|
保证有解 | ||||
无 | ||||
保证有解 | ||||
无 | ||||
保证有解 | ||||
无 | ||||
保证若有解则 | ||||
保证有解 | ||||
无 | ||||
CSP-J-T2 试题
- Status
- Done
- Rule
- IOI
- Problem
- 8
- Start at
- 2024-10-18 17:45
- End at
- 2024-10-28 17:45
- Duration
- 240 hour(s)
- Host
- Partic.
- 11