結果

問題 No.1040 垂直大学
ユーザー numberfromnumberfrom
提出日時 2020-05-19 14:19:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 2,150 ms
コンパイル使用メモリ 74,968 KB
実行使用メモリ 54,248 KB
最終ジャッジ日時 2024-04-09 22:07:24
合計ジャッジ時間 4,562 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
54,052 KB
testcase_01 AC 109 ms
54,092 KB
testcase_02 AC 99 ms
52,740 KB
testcase_03 AC 95 ms
52,512 KB
testcase_04 AC 113 ms
54,248 KB
testcase_05 AC 105 ms
53,032 KB
testcase_06 AC 114 ms
54,240 KB
testcase_07 AC 102 ms
52,716 KB
testcase_08 AC 108 ms
53,748 KB
testcase_09 AC 101 ms
53,016 KB
testcase_10 AC 106 ms
54,060 KB
testcase_11 AC 110 ms
54,024 KB
testcase_12 AC 109 ms
54,212 KB
testcase_13 AC 106 ms
53,892 KB
testcase_14 AC 99 ms
52,832 KB
testcase_15 AC 109 ms
54,132 KB
testcase_16 AC 112 ms
54,052 KB
testcase_17 AC 109 ms
54,048 KB
testcase_18 AC 105 ms
53,888 KB
testcase_19 AC 105 ms
54,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		if(n % 90 == 0 && n % 180 != 0){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

}
0