結果

問題 No.497 入れ子の箱
ユーザー yuruhiyayuruhiya
提出日時 2020-09-06 19:16:38
言語 Ruby
(3.3.0)
結果
AC  
実行時間 848 ms / 5,000 ms
コード長 128 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 11,548 KB
実行使用メモリ 15,400 KB
最終ジャッジ日時 2023-08-19 14:15:34
合計ジャッジ時間 23,385 ms
ジャッジサーバーID
(参考情報)
judge11 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
14,984 KB
testcase_01 AC 70 ms
14,996 KB
testcase_02 AC 71 ms
15,108 KB
testcase_03 AC 802 ms
15,364 KB
testcase_04 AC 848 ms
15,280 KB
testcase_05 AC 817 ms
15,372 KB
testcase_06 AC 811 ms
15,240 KB
testcase_07 AC 810 ms
15,232 KB
testcase_08 AC 811 ms
15,196 KB
testcase_09 AC 800 ms
15,240 KB
testcase_10 AC 799 ms
15,392 KB
testcase_11 AC 802 ms
15,344 KB
testcase_12 AC 796 ms
15,380 KB
testcase_13 AC 780 ms
15,132 KB
testcase_14 AC 782 ms
15,248 KB
testcase_15 AC 775 ms
15,200 KB
testcase_16 AC 784 ms
15,232 KB
testcase_17 AC 802 ms
15,244 KB
testcase_18 AC 820 ms
15,400 KB
testcase_19 AC 803 ms
15,276 KB
testcase_20 AC 799 ms
15,272 KB
testcase_21 AC 805 ms
15,356 KB
testcase_22 AC 794 ms
15,248 KB
testcase_23 AC 725 ms
15,392 KB
testcase_24 AC 724 ms
15,232 KB
testcase_25 AC 69 ms
15,252 KB
testcase_26 AC 69 ms
15,076 KB
testcase_27 AC 791 ms
15,216 KB
testcase_28 AC 805 ms
15,348 KB
testcase_29 AC 799 ms
15,400 KB
testcase_30 AC 769 ms
15,336 KB
testcase_31 AC 771 ms
15,216 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

X=$<.map{_1.split.map(&:to_i).sort}[1..].sort
r=0..$.-2;p r.map{|i|$*[i]=r.map{|j|X[i].zip(X[j]).all?{_1>_2}?$*[j]:0}.max+1}.max
0