結果
| 問題 | No.1338 Giant Class |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-06 06:23:55 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
MLE
不安定
|
| 実行時間 | - |
| コード長 | 386 bytes |
| 記録 | |
| コンパイル時間 | 285 ms |
| コンパイル使用メモリ | 21,340 KB |
| 実行使用メモリ | 1,310,764 KB |
| 最終ジャッジ日時 | 2026-09-05 08:14:37 |
| 合計ジャッジ時間 | 3,659 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_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['.'])