結果

問題 No.3059 tan
ユーザー ks2mks2m
提出日時 2020-04-01 21:43:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 363 bytes
コンパイル時間 2,737 ms
コンパイル使用メモリ 70,992 KB
実行使用メモリ 55,988 KB
最終ジャッジ日時 2023-09-09 17:30:41
合計ジャッジ時間 3,230 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
55,988 KB
testcase_01 AC 138 ms
55,620 KB
testcase_02 AC 136 ms
55,940 KB
権限があれば一括ダウンロードができます

ソースコード

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