結果

問題 No.497 入れ子の箱
ユーザー kotatsugamekotatsugame
提出日時 2021-02-01 19:57:28
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,014 ms / 5,000 ms
コード長 120 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 11,560 KB
実行使用メモリ 15,600 KB
最終ジャッジ日時 2023-09-12 10:40:44
合計ジャッジ時間 29,018 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,036 KB
testcase_01 AC 80 ms
15,300 KB
testcase_02 AC 81 ms
15,132 KB
testcase_03 AC 1,013 ms
15,352 KB
testcase_04 AC 1,014 ms
15,540 KB
testcase_05 AC 1,013 ms
15,544 KB
testcase_06 AC 1,009 ms
15,332 KB
testcase_07 AC 1,011 ms
15,600 KB
testcase_08 AC 1,010 ms
15,584 KB
testcase_09 AC 1,013 ms
15,392 KB
testcase_10 AC 1,009 ms
15,572 KB
testcase_11 AC 1,004 ms
15,388 KB
testcase_12 AC 997 ms
15,524 KB
testcase_13 AC 997 ms
15,472 KB
testcase_14 AC 995 ms
15,284 KB
testcase_15 AC 992 ms
15,396 KB
testcase_16 AC 991 ms
15,488 KB
testcase_17 AC 1,004 ms
15,276 KB
testcase_18 AC 1,008 ms
15,324 KB
testcase_19 AC 1,010 ms
15,556 KB
testcase_20 AC 1,008 ms
15,252 KB
testcase_21 AC 1,012 ms
15,316 KB
testcase_22 AC 1,009 ms
15,484 KB
testcase_23 AC 942 ms
15,372 KB
testcase_24 AC 939 ms
15,380 KB
testcase_25 AC 83 ms
15,164 KB
testcase_26 AC 83 ms
15,228 KB
testcase_27 AC 997 ms
15,276 KB
testcase_28 AC 998 ms
15,432 KB
testcase_29 AC 997 ms
15,524 KB
testcase_30 AC 986 ms
15,308 KB
testcase_31 AC 983 ms
15,400 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - a
Syntax OK

ソースコード

diff #

a,*X=$<.map{_1.split.map(&:to_i).sort}
X.sort!.map{|x|$*<<X.zip($*).map{|y,d|x.zip(y).all?{_1>_2}?d+1:1}.max||1}
p$*.max
0