結果

問題 No.1619 Coccinellidae
ユーザー yuruhiyayuruhiya
提出日時 2021-07-23 10:16:59
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,606 ms / 2,000 ms
コード長 95 bytes
コンパイル時間 331 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 17,864 KB
最終ジャッジ日時 2023-09-25 08:15:51
合計ジャッジ時間 12,814 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
外部呼び出し有り
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
15,028 KB
testcase_01 AC 1,139 ms
17,324 KB
testcase_02 AC 1,325 ms
17,864 KB
testcase_03 AC 85 ms
15,096 KB
testcase_04 AC 1,606 ms
17,808 KB
testcase_05 AC 553 ms
17,040 KB
testcase_06 AC 85 ms
15,028 KB
testcase_07 AC 812 ms
17,036 KB
testcase_08 AC 722 ms
17,060 KB
testcase_09 AC 87 ms
15,268 KB
testcase_10 AC 636 ms
16,644 KB
testcase_11 AC 948 ms
17,204 KB
testcase_12 AC 85 ms
15,032 KB
testcase_13 AC 1,495 ms
17,864 KB
testcase_14 AC 991 ms
17,776 KB
testcase_15 AC 84 ms
15,264 KB
testcase_16 AC 84 ms
15,204 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:4: 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