結果
問題 | No.11 カードマッチ |
ユーザー | warashi |
提出日時 | 2015-02-13 02:23:16 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 343 bytes |
コンパイル時間 | 81 ms |
コンパイル使用メモリ | 10,640 KB |
実行使用メモリ | 816,760 KB |
最終ジャッジ日時 | 2023-09-06 00:34:15 |
合計ジャッジ時間 | 3,406 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,964 KB |
testcase_01 | AC | 15 ms
7,772 KB |
testcase_02 | AC | 16 ms
7,920 KB |
testcase_03 | AC | 16 ms
7,820 KB |
testcase_04 | MLE | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
ソースコード
#!/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))