結果

問題 No.280 歯車の問題(1)
ユーザー crazybbb3crazybbb3
提出日時 2016-12-05 21:58:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 88 ms / 1,000 ms
コード長 1,728 bytes
コンパイル時間 2,111 ms
コンパイル使用メモリ 75,860 KB
実行使用メモリ 53,508 KB
最終ジャッジ日時 2023-08-18 16:11:46
合計ジャッジ時間 9,754 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
51,280 KB
testcase_01 AC 80 ms
52,744 KB
testcase_02 AC 75 ms
50,904 KB
testcase_03 AC 75 ms
51,336 KB
testcase_04 AC 73 ms
51,028 KB
testcase_05 AC 76 ms
52,740 KB
testcase_06 AC 73 ms
50,760 KB
testcase_07 AC 86 ms
52,648 KB
testcase_08 AC 76 ms
52,552 KB
testcase_09 AC 73 ms
51,328 KB
testcase_10 AC 79 ms
52,800 KB
testcase_11 AC 87 ms
52,584 KB
testcase_12 AC 79 ms
52,788 KB
testcase_13 AC 78 ms
52,560 KB
testcase_14 AC 78 ms
52,504 KB
testcase_15 AC 73 ms
53,220 KB
testcase_16 AC 74 ms
51,068 KB
testcase_17 AC 88 ms
52,724 KB
testcase_18 AC 78 ms
52,740 KB
testcase_19 AC 77 ms
53,508 KB
testcase_20 AC 73 ms
51,336 KB
testcase_21 AC 75 ms
51,008 KB
testcase_22 AC 78 ms
50,720 KB
testcase_23 AC 73 ms
51,176 KB
testcase_24 AC 76 ms
52,876 KB
testcase_25 AC 73 ms
50,888 KB
testcase_26 AC 77 ms
52,616 KB
testcase_27 AC 88 ms
52,844 KB
testcase_28 AC 74 ms
52,704 KB
testcase_29 AC 73 ms
51,564 KB
testcase_30 AC 87 ms
52,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.StringTokenizer;

public class Main {

    static BufferedReader in;
    static PrintWriter out;
    static StringTokenizer tok;

    void solve() throws IOException {
        int n = ni();
        long[] z = nla(n);

        out.println(z[n - 1] + "/" + z[0]);
    }

    String ns() throws IOException {
        while (!tok.hasMoreTokens()) {
            tok = new StringTokenizer(in.readLine(), " ");
        }
        return tok.nextToken();
    }

    int ni() throws IOException {
        return Integer.parseInt(ns());
    }

    long nl() throws IOException {
        return Long.parseLong(ns());
    }

    double nd() throws IOException {
        return Double.parseDouble(ns());
    }

    String[] nsa(int n) throws IOException {
        String[] res = new String[n];
        for (int i = 0; i < n; i++) {
            res[i] = ns();
        }
        return res;
    }

    int[] nia(int n) throws IOException {
        int[] res = new int[n];
        for (int i = 0; i < n; i++) {
            res[i] = ni();
        }
        return res;
    }

    long[] nla(int n) throws IOException {
        long[] res = new long[n];
        for (int i = 0; i < n; i++) {
            res[i] = nl();
        }
        return res;
    }

    public static void main(String[] args) throws IOException {
        in = new BufferedReader(new InputStreamReader(System.in));
        out = new PrintWriter(System.out);
        tok = new StringTokenizer("");
        Main main = new Main();
        main.solve();
        out.close();
    }
}
0