結果

問題 No.3027 114514
ユーザー shinwisteriashinwisteria
提出日時 2017-03-31 23:54:53
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 582 bytes
コンパイル時間 4,159 ms
コンパイル使用メモリ 71,936 KB
実行使用メモリ 56,596 KB
最終ジャッジ日時 2023-09-21 21:34:24
合計ジャッジ時間 6,062 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
39,860 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 115 ms
39,408 KB
testcase_05 WA -
testcase_06 AC 116 ms
39,928 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Number {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		s.close();
		if(N == 1){
			System.out.println("7");
		}else if(N ==2 || N == 3 || N == 6){
			System.out.println("1");
		}else if(N == 4 || N == 7){
			System.out.println("4");
		}else if(N == 8){
			System.out.println("3");
		}else if(N == 9){
			System.out.println("0");
		}else if(N == 10){ 
			System.out.println("2");
		}else{
			System.out.println("5");
		}
	}

}
0