結果

問題 No.280 歯車の問題(1)
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-18 22:12:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 162 ms / 1,000 ms
コード長 323 bytes
コンパイル時間 2,149 ms
コンパイル使用メモリ 72,808 KB
実行使用メモリ 57,108 KB
最終ジャッジ日時 2023-08-17 10:32:56
合計ジャッジ時間 11,229 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 153 ms
57,108 KB
testcase_01 AC 153 ms
56,684 KB
testcase_02 AC 157 ms
56,864 KB
testcase_03 AC 154 ms
56,388 KB
testcase_04 AC 154 ms
56,812 KB
testcase_05 AC 155 ms
56,660 KB
testcase_06 AC 150 ms
56,760 KB
testcase_07 AC 159 ms
56,708 KB
testcase_08 AC 160 ms
56,488 KB
testcase_09 AC 162 ms
57,076 KB
testcase_10 AC 160 ms
56,712 KB
testcase_11 AC 152 ms
56,384 KB
testcase_12 AC 157 ms
56,444 KB
testcase_13 AC 150 ms
56,476 KB
testcase_14 AC 155 ms
56,812 KB
testcase_15 AC 156 ms
56,784 KB
testcase_16 AC 159 ms
57,004 KB
testcase_17 AC 153 ms
56,780 KB
testcase_18 AC 154 ms
56,496 KB
testcase_19 AC 158 ms
56,628 KB
testcase_20 AC 161 ms
56,820 KB
testcase_21 AC 159 ms
57,084 KB
testcase_22 AC 158 ms
56,880 KB
testcase_23 AC 159 ms
56,732 KB
testcase_24 AC 155 ms
56,996 KB
testcase_25 AC 158 ms
56,484 KB
testcase_26 AC 159 ms
57,000 KB
testcase_27 AC 159 ms
56,468 KB
testcase_28 AC 152 ms
56,380 KB
testcase_29 AC 158 ms
56,940 KB
testcase_30 AC 151 ms
56,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        long [] z = new long [N];
        for(int i=0; i<N; i++){
            z[i] = sc.nextLong();
        }
        System.out.println(z[N-1]+"/"+z[0]);
    }
}
0