結果

問題 No.2624 Prediction by Average
ユーザー 👑 p-adicp-adic
提出日時 2024-02-10 10:11:47
言語 cLay
(20240104-1)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 2,624 ms
コンパイル使用メモリ 176,968 KB
実行使用メモリ 7,616 KB
最終ジャッジ日時 2024-02-10 10:11:51
合計ジャッジ時間 2,800 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,616 KB
testcase_01 AC 5 ms
7,616 KB
testcase_02 AC 5 ms
7,616 KB
testcase_03 AC 3 ms
7,616 KB
testcase_04 AC 5 ms
7,616 KB
testcase_05 AC 6 ms
7,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@T;rep(T){ll@N,C=1d3,m,L;VI a(2C);string@S;L=S.size();m=stoll(S.substr(0,L-4)+S.substr(L-3));REP(i,1,2C)a[i]=a[i-1]+((i*m+C-1)/C*C<i*m+i);wt(N<C?a[N]:a[C]+N-C);}
0