結果
問題 | No.11 カードマッチ |
ユーザー |
![]() |
提出日時 | 2024-07-30 23:10:38 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 272 bytes |
コンパイル時間 | 3,877 ms |
コンパイル使用メモリ | 276,752 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-30 23:10:43 |
合計ジャッジ時間 | 4,454 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll=long long; int main() { ll 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; }