結果
| 問題 | No.3155 Same Birthday | 
| コンテスト | |
| ユーザー |  Maeda | 
| 提出日時 | 2025-08-27 16:52:05 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 524 bytes | 
| コンパイル時間 | 2,487 ms | 
| コンパイル使用メモリ | 76,900 KB | 
| 実行使用メモリ | 63,080 KB | 
| 最終ジャッジ日時 | 2025-08-27 16:52:15 | 
| 合計ジャッジ時間 | 8,813 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | -- * 2 | 
| other | AC * 1 TLE * 1 -- * 47 | 
ソースコード
import java.util.*;
public class Main {
    public static void main(String[] args) {
    	Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		List<String> birthday = new ArrayList<String>();
		boolean flg = false;    	
		for(int i = 0 ; i < n ; i++){
			String day = scan.nextLine();
			if(birthday.size() > 0 && birthday.indexOf(day) != -1){
				flg = true;
				break;
			}else{
				birthday.add(day);
			}
		}    	
		if(flg){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
    }
}
            
            
            
        