結果

問題 No.280 歯車の問題(1)
ユーザー TatsuDXTatsuDX
提出日時 2016-10-16 22:23:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 166 ms / 1,000 ms
コード長 296 bytes
コンパイル時間 3,532 ms
コンパイル使用メモリ 76,572 KB
実行使用メモリ 55,204 KB
最終ジャッジ日時 2024-05-02 02:45:08
合計ジャッジ時間 10,166 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
54,492 KB
testcase_01 AC 148 ms
54,540 KB
testcase_02 AC 149 ms
54,996 KB
testcase_03 AC 134 ms
54,236 KB
testcase_04 AC 145 ms
54,952 KB
testcase_05 AC 138 ms
54,784 KB
testcase_06 AC 134 ms
54,744 KB
testcase_07 AC 149 ms
54,692 KB
testcase_08 AC 141 ms
54,976 KB
testcase_09 AC 139 ms
54,948 KB
testcase_10 AC 152 ms
54,976 KB
testcase_11 AC 141 ms
54,976 KB
testcase_12 AC 152 ms
55,044 KB
testcase_13 AC 126 ms
54,476 KB
testcase_14 AC 146 ms
54,704 KB
testcase_15 AC 142 ms
54,968 KB
testcase_16 AC 156 ms
55,148 KB
testcase_17 AC 127 ms
54,548 KB
testcase_18 AC 127 ms
54,700 KB
testcase_19 AC 166 ms
54,784 KB
testcase_20 AC 134 ms
54,240 KB
testcase_21 AC 127 ms
53,224 KB
testcase_22 AC 138 ms
54,744 KB
testcase_23 AC 135 ms
54,136 KB
testcase_24 AC 140 ms
55,204 KB
testcase_25 AC 141 ms
54,436 KB
testcase_26 AC 138 ms
54,344 KB
testcase_27 AC 128 ms
53,156 KB
testcase_28 AC 127 ms
54,560 KB
testcase_29 AC 127 ms
54,576 KB
testcase_30 AC 127 ms
54,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int n = sc.nextInt();
		long a = sc.nextLong(), b = 0;
		for (int i = 1; i < n; i++) {
			b = sc.nextLong();
		}
		System.out.println(b + "/" + a);
	}
}
0