結果
問題 |
No.1338 Giant Class
|
ユーザー |
![]() |
提出日時 | 2021-01-15 21:36:02 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 440 ms |
コンパイル使用メモリ | 82,252 KB |
実行使用メモリ | 848,156 KB |
最終ジャッジ日時 | 2024-11-26 13:32:49 |
合計ジャッジ時間 | 9,323 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 RE * 7 MLE * 3 |
ソースコード
h,w,q,*xy = map(int,open(0).read().split()) s = [h]*w ans = h*w for i in range(q): y,x = xy[i*2]-1,xy[i*2+1]-1 if s[x] > y: ans -= s[x]-y s[x] = y print(ans)