結果
| 問題 | No.3155 Same Birthday | 
| コンテスト | |
| ユーザー |  ruase_ | 
| 提出日時 | 2025-08-14 22:59:26 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 521 bytes | 
| コンパイル時間 | 1,097 ms | 
| コンパイル使用メモリ | 96,100 KB | 
| 実行使用メモリ | 14,884 KB | 
| 最終ジャッジ日時 | 2025-08-14 22:59:33 | 
| 合計ジャッジ時間 | 5,845 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | -- * 2 | 
| other | AC * 1 TLE * 1 -- * 47 | 
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
  int n;
  cin >> n;
  int a[n][2];
  string s[n];
  for(int i = 0; i < n; i++) cin >> a[i][0] >> a[i][1];
  int cnt = 0;
  bool found = false;
  for (int i = 0; i < n && !found; ++i) {
    for (int l = 0; l < n; ++l) {
      if (l != i && a[i][0] == a[l][0] && a[i][1] == a[l][1]) {
        ++cnt;
        found = true;
        break;
      }
    }
  }
  if(cnt >= 1){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}
            
            
            
        