結果
問題 | No.11 カードマッチ |
ユーザー | maspy |
提出日時 | 2020-01-29 23:08:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 5,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 137 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-16 03:05:04 |
合計ジャッジ時間 | 1,420 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
import sysread = sys.stdin.buffer.readreadline = sys.stdin.buffer.readlinereadlines = sys.stdin.buffer.readlinesW = int(readline())H = int(readline())N = int(readline())m = map(int,read().split())S,K = zip(*zip(m,m))other = (W - len(set(S))) * (H - len(set(K)))answer = W * H - other - Nprint(answer)