結果

問題 No.1015 おつりは要らないです
ユーザー tailstails
提出日時 2020-04-16 10:53:12
言語 cLay
(20240104-1)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 1,664 ms
コンパイル使用メモリ 159,816 KB
実行使用メモリ 9,664 KB
最終ジャッジ日時 2023-09-19 00:36:26
合計ジャッジ時間 7,260 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,340 KB
testcase_01 AC 5 ms
5,360 KB
testcase_02 AC 5 ms
5,336 KB
testcase_03 AC 5 ms
5,384 KB
testcase_04 AC 5 ms
5,348 KB
testcase_05 AC 5 ms
5,392 KB
testcase_06 AC 5 ms
5,340 KB
testcase_07 AC 5 ms
5,432 KB
testcase_08 AC 5 ms
5,300 KB
testcase_09 AC 5 ms
5,340 KB
testcase_10 AC 13 ms
9,664 KB
testcase_11 AC 13 ms
9,536 KB
testcase_12 AC 14 ms
9,500 KB
testcase_13 AC 14 ms
9,572 KB
testcase_14 AC 13 ms
9,592 KB
testcase_15 AC 13 ms
9,532 KB
testcase_16 AC 14 ms
9,548 KB
testcase_17 AC 13 ms
9,552 KB
testcase_18 AC 13 ms
9,572 KB
testcase_19 AC 13 ms
9,556 KB
testcase_20 AC 11 ms
6,224 KB
testcase_21 AC 11 ms
6,288 KB
testcase_22 AC 10 ms
6,320 KB
testcase_23 AC 10 ms
6,248 KB
testcase_24 AC 10 ms
6,192 KB
testcase_25 AC 10 ms
6,240 KB
testcase_26 AC 10 ms
6,268 KB
testcase_27 AC 10 ms
6,260 KB
testcase_28 AC 10 ms
6,236 KB
testcase_29 AC 11 ms
6,324 KB
testcase_30 AC 5 ms
5,316 KB
testcase_31 AC 6 ms
5,368 KB
testcase_32 AC 6 ms
5,364 KB
testcase_33 AC 6 ms
7,656 KB
testcase_34 AC 5 ms
5,320 KB
testcase_35 AC 5 ms
5,336 KB
testcase_36 AC 5 ms
5,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,x,y,z,t,a[2d6];ll g(ll&v,ll m){return v?t=min(v,n/m),v-=t?++a[n-m*t],t:1,0:1;}{rd(n,x,y,z);rep(n)rd(t),++a[t/1d3];rrep(n,2d6)rep(a[n])if(g(z,10)&&g(y,5)&&g(x,1))exit(!puts("No"));wt("Yes");}
0