結果
問題 | No.2624 Prediction by Average |
ユーザー | 👑 p-adic |
提出日時 | 2024-02-10 10:04:30 |
言語 | cLay (20240104-1) |
結果 |
WA
|
実行時間 | - |
コード長 | 174 bytes |
コンパイル時間 | 4,840 ms |
コンパイル使用メモリ | 177,384 KB |
実行使用メモリ | 7,616 KB |
最終ジャッジ日時 | 2024-02-10 10:04:36 |
合計ジャッジ時間 | 3,258 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
7,616 KB |
testcase_01 | AC | 6 ms
7,616 KB |
testcase_02 | WA | - |
testcase_03 | AC | 3 ms
7,616 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
ソースコード
ll@T;rep(T){ll@N,C=1d3,r=N%C,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(a[r]+N/C*(a[r+C]-a[r]));}