結果
| 問題 | No.11 カードマッチ | 
| コンテスト | |
| ユーザー |  ixmel | 
| 提出日時 | 2017-03-30 19:19:22 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 295 bytes | 
| コンパイル時間 | 163 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-07-07 03:05:29 | 
| 合計ジャッジ時間 | 1,488 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 2 WA * 17 | 
ソースコード
cox,coy=1,1 W=int(input()) H=int(input()) n=int(input()) out=0 w=[] h=[] for i in range(n): x,y=map(int,input().split()) a,b=0,0 for j in range(i): if w[j]==x:a=1 if h[j]==y:b=1 w.append(x) h.append(y) if a==0:out+=H-coy if b==0:out+=W-cox if a==0:cox+=1 if b==0:coy+=1 print(out)
