結果
問題 |
No.1338 Giant Class
|
ユーザー |
|
提出日時 | 2024-01-06 06:23:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
MLE
|
実行時間 | - |
コード長 | 386 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 817,920 KB |
最終ジャッジ日時 | 2024-09-27 19:14:48 |
合計ジャッジ時間 | 2,336 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['.'])