結果

問題 No.1338 Giant Class
ユーザー yuruhiyayuruhiya
提出日時 2021-01-15 21:51:32
言語 Ruby
(3.3.0)
結果
AC  
実行時間 614 ms / 2,000 ms
コード長 98 bytes
コンパイル時間 383 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 30,576 KB
最終ジャッジ日時 2023-08-17 16:49:04
合計ジャッジ時間 10,026 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
15,336 KB
testcase_01 AC 76 ms
15,116 KB
testcase_02 AC 554 ms
25,804 KB
testcase_03 AC 75 ms
15,048 KB
testcase_04 AC 76 ms
15,048 KB
testcase_05 AC 76 ms
15,020 KB
testcase_06 AC 399 ms
24,880 KB
testcase_07 AC 523 ms
30,576 KB
testcase_08 AC 411 ms
24,920 KB
testcase_09 AC 354 ms
24,580 KB
testcase_10 AC 581 ms
29,844 KB
testcase_11 AC 122 ms
16,864 KB
testcase_12 AC 439 ms
28,736 KB
testcase_13 AC 363 ms
24,132 KB
testcase_14 AC 155 ms
18,836 KB
testcase_15 AC 195 ms
19,636 KB
testcase_16 AC 115 ms
17,688 KB
testcase_17 AC 371 ms
24,228 KB
testcase_18 AC 154 ms
18,976 KB
testcase_19 AC 206 ms
20,056 KB
testcase_20 AC 600 ms
29,720 KB
testcase_21 AC 614 ms
29,456 KB
testcase_22 AC 609 ms
29,440 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

(h,w),*x=$<.map{_1.split.map &:to_i}
a=h*w
b=Hash.new(h+1)
x.map{b[_2]-=x=[b[_2]-_1,0].max;p a-=x}
0