結果
| 問題 |
No.3155 Same Birthday
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-23 19:01:37 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 207 ms / 2,000 ms |
| コード長 | 317 bytes |
| コンパイル時間 | 810 ms |
| コンパイル使用メモリ | 82,472 KB |
| 実行使用メモリ | 12,928 KB |
| 最終ジャッジ日時 | 2025-05-23 19:02:18 |
| 合計ジャッジ時間 | 7,422 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 49 |
ソースコード
#include<iostream>
#include<vector>
#include<set>
#include<algorithm>
using namespace std;
using ll = long long;
int main(void){
int n; cin >> n;
set<pair<int, int>> p;
for(int i=0; i<n; i++){
int a, b; cin >> a >> b;
p.insert({a, b});
}
cout << ((int)p.size()==n?"No":"Yes") << endl;
return 0;
}