結果
問題 |
No.1338 Giant Class
|
ユーザー |
|
提出日時 | 2021-06-06 22:33:39 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 232 bytes |
コンパイル時間 | 1,014 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 851,712 KB |
最終ジャッジ日時 | 2024-11-23 19:11:00 |
合計ジャッジ時間 | 11,318 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 RE * 7 MLE * 3 |
ソースコード
h, w, q = map(int,input().split()) occupied = [h]*w ans = h*w for _ in range(q): y, x = map(lambda x:int(x)-1,input().split()) if y < occupied[x]: ans -= abs(occupied[x]-y) occupied[x] = y print(ans)