結果

問題 No.1097 Remainder Operation
ユーザー 👑 NachiaNachia
提出日時 2020-10-04 13:24:17
言語 cLay
(20240104-1)
結果
AC  
実行時間 386 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 1,896 ms
コンパイル使用メモリ 161,020 KB
実行使用メモリ 36,844 KB
最終ジャッジ日時 2023-09-19 01:28:15
合計ジャッジ時間 8,664 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
34,032 KB
testcase_01 AC 8 ms
34,028 KB
testcase_02 AC 7 ms
34,056 KB
testcase_03 AC 8 ms
34,156 KB
testcase_04 AC 7 ms
34,124 KB
testcase_05 AC 8 ms
34,164 KB
testcase_06 AC 8 ms
34,224 KB
testcase_07 AC 23 ms
34,280 KB
testcase_08 AC 23 ms
34,372 KB
testcase_09 AC 22 ms
34,284 KB
testcase_10 AC 23 ms
34,284 KB
testcase_11 AC 23 ms
34,484 KB
testcase_12 AC 172 ms
36,596 KB
testcase_13 AC 193 ms
36,620 KB
testcase_14 AC 199 ms
36,692 KB
testcase_15 AC 224 ms
36,732 KB
testcase_16 AC 184 ms
36,708 KB
testcase_17 AC 137 ms
36,604 KB
testcase_18 AC 139 ms
36,592 KB
testcase_19 AC 167 ms
36,656 KB
testcase_20 AC 166 ms
36,700 KB
testcase_21 AC 382 ms
36,604 KB
testcase_22 AC 386 ms
36,844 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