結果
| 問題 |
No.11 カードマッチ
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-08-02 09:43:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 346 bytes |
| コンパイル時間 | 190 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 26,368 KB |
| 最終ジャッジ日時 | 2024-10-11 05:48:21 |
| 合計ジャッジ時間 | 3,320 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 15 RE * 2 |
ソースコード
# your code goes here
W=int(input())
H=int(input())
N=int(input())
S=[[int(i) for i in input ().split()] for i in range (N)]
T=[0]*W
L=[0]*H
for i in range (N):
# print (S)
T[S[i][0]]+=1
L[S[i][1]]+=1
C=0
for i in range (W):
# print (T)
if T[i]>0:
C+=H-T[i]
for i in range (H):
if L[i]>0:
C+=W-L[i]
print (C)
rocoder