結果

問題 No.280 歯車の問題(1)
ユーザー MoominPazMoominPaz
提出日時 2015-10-25 23:42:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 169 ms / 1,000 ms
コード長 483 bytes
コンパイル時間 2,179 ms
コンパイル使用メモリ 73,472 KB
実行使用メモリ 57,228 KB
最終ジャッジ日時 2023-10-11 10:01:19
合計ジャッジ時間 11,755 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 159 ms
56,692 KB
testcase_01 AC 159 ms
56,852 KB
testcase_02 AC 162 ms
56,868 KB
testcase_03 AC 162 ms
56,780 KB
testcase_04 AC 163 ms
56,720 KB
testcase_05 AC 162 ms
57,004 KB
testcase_06 AC 158 ms
56,636 KB
testcase_07 AC 169 ms
56,584 KB
testcase_08 AC 163 ms
57,228 KB
testcase_09 AC 167 ms
56,888 KB
testcase_10 AC 166 ms
56,840 KB
testcase_11 AC 159 ms
56,580 KB
testcase_12 AC 165 ms
57,176 KB
testcase_13 AC 158 ms
57,012 KB
testcase_14 AC 162 ms
54,824 KB
testcase_15 AC 165 ms
56,780 KB
testcase_16 AC 165 ms
56,884 KB
testcase_17 AC 161 ms
56,844 KB
testcase_18 AC 156 ms
56,836 KB
testcase_19 AC 164 ms
56,908 KB
testcase_20 AC 167 ms
57,228 KB
testcase_21 AC 164 ms
56,928 KB
testcase_22 AC 163 ms
56,944 KB
testcase_23 AC 166 ms
56,996 KB
testcase_24 AC 159 ms
56,844 KB
testcase_25 AC 161 ms
56,900 KB
testcase_26 AC 162 ms
56,576 KB
testcase_27 AC 161 ms
56,616 KB
testcase_28 AC 158 ms
57,092 KB
testcase_29 AC 161 ms
56,856 KB
testcase_30 AC 156 ms
56,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    Scanner sc = new Scanner(System.in);
    int cnt;
    int za;
    int zb;
    int[] sita;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        cnt = sc.nextInt();
        sita = new int[cnt];
        for(int i = 0; i < cnt; i++) {
            sita[i] = sc.nextInt();
        }
        za = sita[0];
        zb = sita[cnt - 1];
        System.out.println(zb + "/" + za);
    }
}
0