結果

問題 No.1619 Coccinellidae
ユーザー yuruhiyayuruhiya
提出日時 2021-08-01 11:24:13
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,629 ms / 2,000 ms
コード長 94 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 11,352 KB
実行使用メモリ 17,992 KB
最終ジャッジ日時 2023-10-14 18:42:35
合計ジャッジ時間 14,154 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,068 KB
testcase_01 AC 1,131 ms
17,412 KB
testcase_02 AC 1,331 ms
17,916 KB
testcase_03 AC 80 ms
14,992 KB
testcase_04 AC 1,629 ms
17,992 KB
testcase_05 AC 551 ms
17,012 KB
testcase_06 AC 79 ms
15,068 KB
testcase_07 AC 794 ms
16,980 KB
testcase_08 AC 715 ms
17,084 KB
testcase_09 AC 78 ms
14,992 KB
testcase_10 AC 638 ms
16,896 KB
testcase_11 AC 937 ms
17,396 KB
testcase_12 AC 78 ms
14,988 KB
testcase_13 AC 1,520 ms
17,988 KB
testcase_14 AC 1,004 ms
17,836 KB
testcase_15 AC 77 ms
15,060 KB
testcase_16 AC 78 ms
15,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

eval"N,M,K,A=#{`tr -! ,`}[]"
A[A.index~-N.times{K-=i=[_1,K].min;A.insert~i,_1}]+=M-A.sum
p *A
0