結果

問題 No.3027 114514
ユーザー shinwisteriashinwisteria
提出日時 2017-04-01 00:14:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 708 bytes
コンパイル時間 3,345 ms
コンパイル使用メモリ 73,080 KB
実行使用メモリ 58,084 KB
最終ジャッジ日時 2023-09-21 21:44:21
合計ジャッジ時間 5,516 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,768 KB
testcase_01 AC 127 ms
55,644 KB
testcase_02 AC 127 ms
55,696 KB
testcase_03 WA -
testcase_04 AC 127 ms
55,956 KB
testcase_05 AC 126 ms
55,796 KB
testcase_06 AC 128 ms
55,564 KB
testcase_07 AC 127 ms
55,696 KB
testcase_08 AC 128 ms
55,660 KB
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){
			System.out.println("8");
		}else if(N == 3){
			System.out.println("9");
		}else if(N == 4){
			System.out.println("4");
		}else if(N == 6){
			System.out.println("6");
		}else if(N == 7){
			System.out.println("4");
		}else if(N == 8){
			System.out.println("2");
		}else if(N == 9){
			System.out.println("3");
		}else if(N == 10){ 
			System.out.println("10");
		}else if(N == 5){
			System.out.println("5");
		}
	}

}
0