結果

問題 No.1003 サイコロの実装 (1)
ユーザー 37zigen
提出日時 2020-03-06 18:57:21
言語 Java
(openjdk 23)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 2,076 ms
コンパイル使用メモリ 74,072 KB
実行使用メモリ 41,460 KB
最終ジャッジ日時 2024-10-14 03:31:52
合計ジャッジ時間 6,751 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

// 制約の確認

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		new Main().run();
	}
	
	void run() {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		if(!(1<=N&&N<=1<<16))throw new AssertionError();
		System.out.println(N%6==0?"Yes":"No");
	}
}
0