結果

問題 No.280 歯車の問題(1)
ユーザー GrenacheGrenache
提出日時 2015-09-18 22:33:31
言語 Java
(openjdk 23)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 376 bytes
コンパイル時間 3,392 ms
コンパイル使用メモリ 74,552 KB
実行使用メモリ 41,436 KB
最終ジャッジ日時 2024-07-19 07:00:43
合計ジャッジ時間 8,979 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

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