結果

問題 No.3027 114514
ユーザー shinwisteriashinwisteria
提出日時 2017-04-01 00:09:52
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 707 bytes
コンパイル時間 4,607 ms
コンパイル使用メモリ 72,736 KB
実行使用メモリ 56,476 KB
最終ジャッジ日時 2023-09-21 21:42:26
合計ジャッジ時間 5,516 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,948 KB
testcase_01 AC 117 ms
55,792 KB
testcase_02 AC 118 ms
56,476 KB
testcase_03 WA -
testcase_04 AC 118 ms
55,776 KB
testcase_05 AC 122 ms
55,772 KB
testcase_06 AC 118 ms
56,084 KB
testcase_07 AC 120 ms
56,416 KB
testcase_08 AC 118 ms
55,756 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("0");
		}else if(N == 8){
			System.out.println("2");
		}else if(N == 9){
			System.out.println("3");
		}else if(N == 10){ 
			System.out.println("8");
		}else if(N == 5){
			System.out.println("5");
		}
	}

}
0