結果

問題 No.8059 tan
ユーザー ks2m
提出日時 2020-04-01 21:43:47
言語 Java
(openjdk 23)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 363 bytes
コンパイル時間 2,101 ms
コンパイル使用メモリ 75,336 KB
実行使用メモリ 54,380 KB
最終ジャッジ日時 2024-06-27 10:11:16
合計ジャッジ時間 2,881 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		for (int i = 0; i < t; i++) {
			int x = sc.nextInt();
			if (x == 0
					|| x == 45
					) {
				System.out.println("Y");
			} else {
				System.out.println("N");
			}
		}
		sc.close();
	}
}
0