結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,128 KB
testcase_01 AC 1,120 ms
17,448 KB
testcase_02 AC 1,342 ms
17,796 KB
testcase_03 AC 85 ms
15,312 KB
testcase_04 AC 1,656 ms
17,988 KB
testcase_05 AC 543 ms
17,092 KB
testcase_06 AC 86 ms
15,180 KB
testcase_07 AC 798 ms
17,016 KB
testcase_08 AC 717 ms
16,988 KB
testcase_09 AC 85 ms
15,144 KB
testcase_10 AC 638 ms
16,736 KB
testcase_11 AC 943 ms
17,256 KB
testcase_12 AC 84 ms
15,268 KB
testcase_13 AC 1,514 ms
18,032 KB
testcase_14 AC 995 ms
17,776 KB
testcase_15 AC 85 ms
15,128 KB
testcase_16 AC 84 ms
15,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:5: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

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