結果
| 問題 | No.11 カードマッチ |
| コンテスト | |
| ユーザー |
kazuppa
|
| 提出日時 | 2024-07-30 23:09:53 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 2,193 ms |
| コンパイル使用メモリ | 335,176 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-24 17:55:37 |
| 合計ジャッジ時間 | 3,682 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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