結果
| 問題 |
No.3155 Same Birthday
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-23 19:00:50 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 302 ms / 2,000 ms |
| コード長 | 416 bytes |
| コンパイル時間 | 6,066 ms |
| コンパイル使用メモリ | 334,068 KB |
| 実行使用メモリ | 13,056 KB |
| 最終ジャッジ日時 | 2025-05-23 19:01:08 |
| 合計ジャッジ時間 | 12,963 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 49 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll=long long;
int main()
{
int n;
cin>>n;
set<pair<int,int>> s;
for(int i=0;i<n;i++){
int a,b;
cin>>a>>b;
if(s.count(make_pair(a,b))){
cout<<"Yes"<<endl;
return 0;
}
s.insert(make_pair(a,b));
}
cout<<"No"<<endl;
return 0;
}