結果
| 問題 | No.11 カードマッチ |
| コンテスト | |
| ユーザー |
shimashima_k
|
| 提出日時 | 2015-04-27 05:28:50 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 304 bytes |
| 記録 | |
| コンパイル時間 | 1,101 ms |
| コンパイル使用メモリ | 179,464 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-26 10:33:30 |
| 合計ジャッジ時間 | 1,936 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 19 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
int main() {
int w,h,n;
cin>>w>>h>>n;
set<int> ss,sk;
while (n--) {
int s,k;
cin >> s>>k;
ss.insert(s);
sk.insert(k);
}
cout<< ss.size()*h + sk.size()*w - sk.size()*ss.size() -n<< endl;
return 0;
}
shimashima_k