QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#77147#1486. Powers of PascalZhangYiDeAC ✓6ms3380kbC++17446b2023-02-13 05:34:392023-02-13 05:34:43

详细

Test #1:

score: 100
Accepted
time: 6ms
memory: 3380kb

input:

50
1 1 8 3
2 9 21 13
3 200 100000 99998
4 2125 6194 6192
5 265 157 154
6 7641 4787 4785
7 3597 209 207
8 1957 86 83
9 280 123 120
10 1912 8768 8766
11 2934 8990 8988
12 770 5340 5338
13 113 1723 1721
14 6995 8369 8368
15 167 8921 8919
16 52 2 0
17 5932 9230 9229
18 4692 4110 4108
19 3478 9763 9761
2...

output:

1 56
2 8759577256290
3 199998000000000
4 86608427640625
5 11774495833750
6 668815801855371
7 281229258024
8 767039783213620
9 6643136192000
10 140506795128832
11 347825401817580
12 8451866577000
13 18942849807
14 58541155
15 1109638049740
16 2704
17 54752360
18 185893401541680
19 576436207638252
20 ...

result:

ok 50 lines