結果
| 問題 | No.3155 Same Birthday | 
| コンテスト | |
| ユーザー |  Maeda | 
| 提出日時 | 2025-08-26 11:50:08 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 508 bytes | 
| コンパイル時間 | 3,145 ms | 
| コンパイル使用メモリ | 77,568 KB | 
| 実行使用メモリ | 59,348 KB | 
| 最終ジャッジ日時 | 2025-08-26 11:50:18 | 
| 合計ジャッジ時間 | 7,780 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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.contains("day")){
				flg = true;
				break;
			}else{
				birthday.add(day);
			}
		}
		if(flg){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
    }
}
            
            
            
        