結果

問題 No.280 歯車の問題(1)
ユーザー GrenacheGrenache
提出日時 2015-09-18 22:33:31
言語 Java19
(openjdk 21)
結果
AC  
実行時間 133 ms / 1,000 ms
コード長 376 bytes
コンパイル時間 3,119 ms
コンパイル使用メモリ 72,356 KB
実行使用メモリ 56,392 KB
最終ジャッジ日時 2023-09-26 12:32:39
合計ジャッジ時間 11,007 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,716 KB
testcase_01 AC 123 ms
55,744 KB
testcase_02 AC 124 ms
56,264 KB
testcase_03 AC 128 ms
55,876 KB
testcase_04 AC 132 ms
56,348 KB
testcase_05 AC 124 ms
55,836 KB
testcase_06 AC 121 ms
56,004 KB
testcase_07 AC 132 ms
55,972 KB
testcase_08 AC 133 ms
56,392 KB
testcase_09 AC 129 ms
55,800 KB
testcase_10 AC 133 ms
55,568 KB
testcase_11 AC 124 ms
55,648 KB
testcase_12 AC 130 ms
56,044 KB
testcase_13 AC 125 ms
55,560 KB
testcase_14 AC 132 ms
55,748 KB
testcase_15 AC 129 ms
55,924 KB
testcase_16 AC 128 ms
55,976 KB
testcase_17 AC 123 ms
55,768 KB
testcase_18 AC 121 ms
56,028 KB
testcase_19 AC 126 ms
55,956 KB
testcase_20 AC 128 ms
56,044 KB
testcase_21 AC 126 ms
55,788 KB
testcase_22 AC 127 ms
56,256 KB
testcase_23 AC 127 ms
55,692 KB
testcase_24 AC 125 ms
56,184 KB
testcase_25 AC 126 ms
56,332 KB
testcase_26 AC 127 ms
56,244 KB
testcase_27 AC 130 ms
55,800 KB
testcase_28 AC 124 ms
55,696 KB
testcase_29 AC 129 ms
56,144 KB
testcase_30 AC 120 ms
55,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder280 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        int[] z = new int[n];
        for (int i = 0; i < n; i++) {
        	z[i] = sc.nextInt();
        }

        System.out.printf("%d/%d\n", z[n - 1], z[0]);

        sc.close();
    }
}
0