結果

問題 No.280 歯車の問題(1)
ユーザー ぴろずぴろず
提出日時 2015-09-18 22:40:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 162 ms / 1,000 ms
コード長 311 bytes
コンパイル時間 2,931 ms
コンパイル使用メモリ 74,068 KB
実行使用メモリ 57,304 KB
最終ジャッジ日時 2023-09-26 12:35:51
合計ジャッジ時間 11,157 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 149 ms
56,668 KB
testcase_01 AC 149 ms
56,516 KB
testcase_02 AC 158 ms
56,864 KB
testcase_03 AC 155 ms
56,888 KB
testcase_04 AC 154 ms
56,884 KB
testcase_05 AC 153 ms
56,612 KB
testcase_06 AC 149 ms
56,816 KB
testcase_07 AC 162 ms
56,888 KB
testcase_08 AC 159 ms
56,932 KB
testcase_09 AC 157 ms
56,760 KB
testcase_10 AC 158 ms
56,788 KB
testcase_11 AC 155 ms
56,480 KB
testcase_12 AC 159 ms
56,824 KB
testcase_13 AC 149 ms
56,768 KB
testcase_14 AC 155 ms
56,796 KB
testcase_15 AC 157 ms
56,736 KB
testcase_16 AC 156 ms
57,304 KB
testcase_17 AC 154 ms
56,820 KB
testcase_18 AC 151 ms
56,596 KB
testcase_19 AC 161 ms
56,868 KB
testcase_20 AC 161 ms
56,556 KB
testcase_21 AC 157 ms
56,888 KB
testcase_22 AC 156 ms
56,736 KB
testcase_23 AC 158 ms
56,720 KB
testcase_24 AC 156 ms
56,820 KB
testcase_25 AC 160 ms
56,880 KB
testcase_26 AC 161 ms
56,908 KB
testcase_27 AC 159 ms
56,664 KB
testcase_28 AC 156 ms
56,800 KB
testcase_29 AC 160 ms
56,480 KB
testcase_30 AC 151 ms
56,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no281;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int z1 = sc.nextInt();
		for(int i=2;i<=n-1;i++) {
			sc.nextInt();
		}
		int zn = sc.nextInt();
		System.out.println(zn + "/" + z1);
	}

}
0