結果
| 問題 |
No.11 カードマッチ
|
| コンテスト | |
| ユーザー |
kazuppa
|
| 提出日時 | 2024-07-30 23:09:53 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| コンパイル時間 | 4,002 ms |
| コンパイル使用メモリ | 277,540 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-30 23:09:59 |
| 合計ジャッジ時間 | 4,649 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int w,h,n;cin>>w>>h>>n;
set<int> tate,yoko;
for(int i=0;i<n;i++){
int s,k;cin>>s>>k;
tate.insert(s);
yoko.insert(k);
}
cout<<h*w-(w-tate.size())*(h-yoko.size())-n<<endl;
}
kazuppa