QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#73549#4492. Yet Another Easy Permutation Count ProblemHuangHanShengAC ✓2084ms26788kbC++205.6kb2023-01-25 18:53:562023-01-25 18:53:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2084ms
memory: 26788kb

input:

100
1 1
1 1
7513 7311
5538 3089
3928 1029
5512 3849
100 1643
7328 4748
5811 196
6557 2258
3348 790
2760 882
1297 689
7500 6955
3619 3686
3724 3401
6412 4691
6471 4947
6315 5754
1752 1086
2648 124
6721 2929
7185 5179
7239 6148
3005 7383
6676 3884
3074 6165
5062 5842
1145 5090
7376 848
5418 6441
275 6...

output:

0
89541616
367554988
216909100
990456909
526769607
506026027
780187494
553834792
144362048
842584375
861132490
730089994
250057476
295193259
96890952
451932499
132980145
430587965
19967698
589057985
811887276
759432199
345092973
588708812
875024174
665937616
34601572
507128381
479135581
798327226
74...

result:

ok 100 lines