結果

問題 No.1097 Remainder Operation
ユーザー 👑 NachiaNachia
提出日時 2020-10-04 13:41:10
言語 cLay
(20240420-1)
結果
AC  
実行時間 219 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 2,205 ms
コンパイル使用メモリ 173,368 KB
実行使用メモリ 36,824 KB
最終ジャッジ日時 2024-04-26 15:16:28
合計ジャッジ時間 7,013 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 5 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 19 ms
7,040 KB
testcase_08 AC 19 ms
6,784 KB
testcase_09 AC 18 ms
7,040 KB
testcase_10 AC 19 ms
7,040 KB
testcase_11 AC 18 ms
7,040 KB
testcase_12 AC 148 ms
36,736 KB
testcase_13 AC 154 ms
36,824 KB
testcase_14 AC 159 ms
36,708 KB
testcase_15 AC 178 ms
36,624 KB
testcase_16 AC 150 ms
36,700 KB
testcase_17 AC 134 ms
36,772 KB
testcase_18 AC 131 ms
36,608 KB
testcase_19 AC 145 ms
36,520 KB
testcase_20 AC 143 ms
36,736 KB
testcase_21 AC 219 ms
36,704 KB
testcase_22 AC 210 ms
36,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll N,P[40][1d5],Q,K,X;{rd(N,P[0](N),Q);rep(d,39)rep(i,N)P[d+1][i]=P[d][i]+P[d][(i+P[d][i])%N];REP(Q){rd(K);X=0;rep(d,40)X+=P[d][X%N]*(K>>d&1);wt(X);}}
0