結果

問題 No.3059 tan
ユーザー 遭難者遭難者
提出日時 2020-09-21 20:18:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 382 bytes
コンパイル時間 2,214 ms
コンパイル使用メモリ 72,864 KB
実行使用メモリ 56,360 KB
最終ジャッジ日時 2023-09-06 23:38:14
合計ジャッジ時間 3,147 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,360 KB
testcase_01 AC 125 ms
56,132 KB
testcase_02 AC 124 ms
56,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
public class Main {
    public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int t = Integer.parseInt(sc.next());
		for(int i = 0 ; i < t ; i++){
			int a = Integer.parseInt(sc.next());
			if(a % 45 == 0) ou.println("Y");
			else ou.println("N");
		}
		ou.flush();
	}
}
0