結果
| 問題 | No.11 カードマッチ |
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-02-03 02:40:02 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 318 bytes |
| 記録 | |
| コンパイル時間 | 699 ms |
| コンパイル使用メモリ | 62,840 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-23 06:54:50 |
| 合計ジャッジ時間 | 1,195 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 19 |
ソースコード
#include <iostream>
#include <set>
using namespace std;
int main()
{
long long W, H, N;
while (cin>>W>>H>>N) {
set<int> w, h;
while (N--) {
int a, b; cin>>a>>b;
w.insert(a);
h.insert(b);
}
cout<<W*H-(W-w.size())*(H-h.size())-N<<endl;
}
}
hogeover30