結果
| 問題 | No.1338 Giant Class |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-06 06:26:50 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 386 bytes |
| 記録 | |
| コンパイル時間 | 1,421 ms |
| コンパイル使用メモリ | 84,816 KB |
| 実行使用メモリ | 1,304,228 KB |
| 最終ジャッジ日時 | 2026-04-14 13:12:43 |
| 合計ジャッジ時間 | 4,164 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | MLE * 2 -- * 19 |
ソースコード
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['.'])