結果
問題 | No.3155 Same Birthday |
ユーザー |
|
提出日時 | 2025-05-06 19:39:15 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 193 ms / 2,000 ms |
コード長 | 307 bytes |
コンパイル時間 | 3,403 ms |
コンパイル使用メモリ | 279,340 KB |
実行使用メモリ | 12,800 KB |
最終ジャッジ日時 | 2025-05-13 17:52:31 |
合計ジャッジ時間 | 9,474 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 49 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int N; cin >> N; set<pair<int, int>> S; for(int i = 0; i < N; i++){ int a, b; cin >> a >> b; S.insert(make_pair(a, b)); } if(S.size() == N) cout << "No" << endl; else cout << "Yes" << endl; return 0; }