結果
| 問題 | No.11 カードマッチ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-02-13 02:23:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 343 bytes |
| 記録 | |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 817,864 KB |
| 最終ジャッジ日時 | 2024-06-23 19:40:14 |
| 合計ジャッジ時間 | 3,732 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 MLE * 1 -- * 14 |
ソースコード
#!/usr/bin/env python3
import sys
W = int(input())
H = int(input())
N = int(input())
match = set()
hand = []
for line in sys.stdin:
S, K = map(int, line.split())
hand.append((S, K))
match.update([(i, K) for i in range(1, W + 1)])
match.update([(S, i) for i in range(1, H + 1)])
match.difference_update(hand)
print(len(match))