結果

問題 No.280 歯車の問題(1)
ユーザー YamaKasaYamaKasa
提出日時 2018-09-09 19:26:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 160 ms / 1,000 ms
コード長 306 bytes
コンパイル時間 2,039 ms
コンパイル使用メモリ 73,888 KB
実行使用メモリ 58,484 KB
最終ジャッジ日時 2023-08-25 15:33:18
合計ジャッジ時間 11,531 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 148 ms
54,840 KB
testcase_01 AC 148 ms
56,832 KB
testcase_02 AC 151 ms
57,052 KB
testcase_03 AC 150 ms
56,772 KB
testcase_04 AC 150 ms
56,708 KB
testcase_05 AC 155 ms
56,956 KB
testcase_06 AC 150 ms
56,748 KB
testcase_07 AC 150 ms
57,124 KB
testcase_08 AC 153 ms
57,016 KB
testcase_09 AC 149 ms
56,852 KB
testcase_10 AC 160 ms
55,068 KB
testcase_11 AC 152 ms
56,684 KB
testcase_12 AC 155 ms
56,760 KB
testcase_13 AC 147 ms
57,204 KB
testcase_14 AC 153 ms
56,928 KB
testcase_15 AC 146 ms
56,980 KB
testcase_16 AC 150 ms
56,468 KB
testcase_17 AC 150 ms
56,996 KB
testcase_18 AC 147 ms
56,516 KB
testcase_19 AC 149 ms
56,804 KB
testcase_20 AC 147 ms
57,284 KB
testcase_21 AC 150 ms
56,820 KB
testcase_22 AC 148 ms
56,880 KB
testcase_23 AC 149 ms
58,484 KB
testcase_24 AC 149 ms
56,816 KB
testcase_25 AC 154 ms
56,724 KB
testcase_26 AC 152 ms
57,036 KB
testcase_27 AC 152 ms
56,736 KB
testcase_28 AC 146 ms
56,436 KB
testcase_29 AC 152 ms
56,980 KB
testcase_30 AC 143 ms
57,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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