結果

問題 No.1338 Giant Class
ユーザー kotatsugamekotatsugame
提出日時 2021-02-01 18:14:53
言語 Ruby
(3.3.0)
結果
AC  
実行時間 673 ms / 2,000 ms
コード長 91 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 11,296 KB
実行使用メモリ 30,668 KB
最終ジャッジ日時 2023-09-12 10:15:41
合計ジャッジ時間 11,271 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,152 KB
testcase_01 AC 89 ms
15,072 KB
testcase_02 AC 605 ms
25,804 KB
testcase_03 AC 85 ms
15,128 KB
testcase_04 AC 86 ms
15,296 KB
testcase_05 AC 87 ms
15,096 KB
testcase_06 AC 432 ms
25,108 KB
testcase_07 AC 573 ms
30,668 KB
testcase_08 AC 402 ms
24,756 KB
testcase_09 AC 383 ms
24,740 KB
testcase_10 AC 635 ms
29,776 KB
testcase_11 AC 134 ms
17,088 KB
testcase_12 AC 474 ms
28,460 KB
testcase_13 AC 408 ms
24,148 KB
testcase_14 AC 171 ms
18,980 KB
testcase_15 AC 205 ms
19,892 KB
testcase_16 AC 126 ms
17,824 KB
testcase_17 AC 409 ms
24,136 KB
testcase_18 AC 164 ms
18,812 KB
testcase_19 AC 225 ms
20,132 KB
testcase_20 AC 668 ms
29,568 KB
testcase_21 AC 673 ms
29,576 KB
testcase_22 AC 655 ms
29,584 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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