結果

問題 No.405 ローマ数字の腕時計
ユーザー fal_rndfal_rnd
提出日時 2017-03-31 15:35:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 510 bytes
コンパイル時間 2,067 ms
コンパイル使用メモリ 72,216 KB
実行使用メモリ 56,460 KB
最終ジャッジ日時 2023-09-21 00:25:40
合計ジャッジ時間 6,756 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,460 KB
testcase_01 AC 122 ms
55,616 KB
testcase_02 AC 122 ms
55,644 KB
testcase_03 AC 123 ms
55,800 KB
testcase_04 AC 122 ms
56,132 KB
testcase_05 AC 121 ms
56,352 KB
testcase_06 AC 124 ms
55,368 KB
testcase_07 AC 124 ms
55,892 KB
testcase_08 AC 123 ms
55,496 KB
testcase_09 AC 123 ms
55,904 KB
testcase_10 AC 122 ms
55,788 KB
testcase_11 AC 122 ms
55,884 KB
testcase_12 AC 120 ms
55,868 KB
testcase_13 AC 122 ms
55,752 KB
testcase_14 AC 121 ms
55,852 KB
testcase_15 AC 124 ms
55,800 KB
testcase_16 AC 123 ms
56,164 KB
testcase_17 AC 122 ms
55,956 KB
testcase_18 AC 122 ms
54,000 KB
testcase_19 AC 124 ms
56,068 KB
testcase_20 AC 121 ms
55,984 KB
testcase_21 AC 123 ms
56,396 KB
testcase_22 AC 125 ms
55,772 KB
testcase_23 AC 124 ms
56,460 KB
testcase_24 AC 123 ms
55,840 KB
testcase_25 AC 122 ms
54,088 KB
testcase_26 AC 123 ms
55,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main{

	static Scanner s=new Scanner(System.in);

	public static void main(String __[]){
		input();
		solve();
	}

	static List<String>	list=Arrays.asList("I","II","III","IIII","V","VI","VII","VIII","IX","X","XI","XII");
	static String		s1;
	static int			t;

	private static void input(){
		s1=s.next();
		t=s.nextInt();
	}

	private static void solve(){
		System.out.println(list.get((list.indexOf(s1)+1200+t)%12));
	}
}
0