結果

問題 No.1619 Coccinellidae
ユーザー yuruhiyayuruhiya
提出日時 2021-07-23 10:18:51
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,641 ms / 2,000 ms
コード長 96 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 11,324 KB
実行使用メモリ 18,276 KB
最終ジャッジ日時 2023-09-25 08:17:18
合計ジャッジ時間 13,260 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,268 KB
testcase_01 AC 1,120 ms
17,488 KB
testcase_02 AC 1,324 ms
17,860 KB
testcase_03 AC 82 ms
15,144 KB
testcase_04 AC 1,641 ms
18,276 KB
testcase_05 AC 563 ms
17,012 KB
testcase_06 AC 84 ms
15,172 KB
testcase_07 AC 807 ms
17,308 KB
testcase_08 AC 721 ms
16,888 KB
testcase_09 AC 85 ms
15,288 KB
testcase_10 AC 640 ms
17,068 KB
testcase_11 AC 943 ms
17,456 KB
testcase_12 AC 81 ms
15,236 KB
testcase_13 AC 1,516 ms
17,956 KB
testcase_14 AC 993 ms
18,200 KB
testcase_15 AC 83 ms
15,296 KB
testcase_16 AC 85 ms
15,272 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:4: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

eval"N,M,K="+gets.split*?,
a=[]
a[a.index~-N.times{K-=i=[_1,K].min;a.insert~i,_1}]+=M-a.sum
p *a
0