結果

問題 No.1164 GCD Products hard
ユーザー tailstails
提出日時 2020-09-18 18:47:17
言語 cLay
(20240104-1)
結果
AC  
実行時間 2,390 ms / 2,500 ms
コード長 129 bytes
コンパイル時間 3,157 ms
コンパイル使用メモリ 181,472 KB
実行使用メモリ 4,528 KB
最終ジャッジ日時 2023-09-19 01:18:33
合計ジャッジ時間 40,762 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,586 ms
4,384 KB
testcase_01 AC 1,800 ms
4,384 KB
testcase_02 AC 1,301 ms
4,388 KB
testcase_03 AC 401 ms
4,400 KB
testcase_04 AC 418 ms
4,380 KB
testcase_05 AC 1,575 ms
4,528 KB
testcase_06 AC 1,917 ms
4,380 KB
testcase_07 AC 2,020 ms
4,384 KB
testcase_08 AC 1,999 ms
4,384 KB
testcase_09 AC 1,358 ms
4,508 KB
testcase_10 AC 359 ms
4,384 KB
testcase_11 AC 1,456 ms
4,384 KB
testcase_12 AC 1,911 ms
4,384 KB
testcase_13 AC 1,111 ms
4,388 KB
testcase_14 AC 1,290 ms
4,384 KB
testcase_15 AC 2,055 ms
4,384 KB
testcase_16 AC 1,431 ms
4,384 KB
testcase_17 AC 1,531 ms
4,504 KB
testcase_18 AC 1,382 ms
4,384 KB
testcase_19 AC 449 ms
4,476 KB
testcase_20 AC 706 ms
4,384 KB
testcase_21 AC 2,080 ms
4,384 KB
testcase_22 AC 5 ms
4,380 KB
testcase_23 AC 2,231 ms
4,384 KB
testcase_24 AC 2,390 ms
4,380 KB
testcase_25 AC 5 ms
4,508 KB
testcase_26 AC 5 ms
4,384 KB
testcase_27 AC 4 ms
4,460 KB
testcase_28 AC 4 ms
4,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{ll a,b,n,i,j,q;Mint u=1;rd(a--,b,n);rep(p,b+1)if(isPrime(q=p)){for(i=0;j=b/q-a/q;q*=p)i+=powmod(j,n,MD-1);u*=Mint(p)**i;}wt(u);}
0