結果
| 問題 | No.11 カードマッチ |
| コンテスト | |
| ユーザー |
shimashima_k
|
| 提出日時 | 2015-04-27 05:28:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 304 bytes |
| コンパイル時間 | 1,461 ms |
| コンパイル使用メモリ | 163,736 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-05 03:31:00 |
| 合計ジャッジ時間 | 2,082 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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