結果
問題 |
No.1338 Giant Class
|
ユーザー |
|
提出日時 | 2024-01-06 06:26:50 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 386 bytes |
コンパイル時間 | 211 ms |
コンパイル使用メモリ | 82,440 KB |
実行使用メモリ | 819,780 KB |
最終ジャッジ日時 | 2024-09-27 19:14:55 |
合計ジャッジ時間 | 4,332 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | MLE * 1 -- * 20 |
ソースコード
H, W, Q = map(int, input().split()) from collections import defaultdict matrix = [['.']*W for _ in range(H)] for _ in range(Q): y, x = map(int, input().split()) for i in range(y-1, H): matrix[i][x-1] = '#' dict = defaultdict(int) for h in range(H): for w in range(W): if matrix[h][w]=='.': dict['.'] += 1 print(dict['.'])