結果
問題 |
No.1338 Giant Class
|
ユーザー |
|
提出日時 | 2024-01-06 06:21:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
MLE
|
実行時間 | - |
コード長 | 424 bytes |
コンパイル時間 | 246 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 818,176 KB |
最終ジャッジ日時 | 2024-09-27 19:14:43 |
合計ジャッジ時間 | 3,923 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)] ans = [] 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 ans.append(dict['.']) [print(i) for i in ans]