結果

問題 No.280 歯車の問題(1)
ユーザー Mcpu3Mcpu3
提出日時 2018-09-02 17:41:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 160 ms / 1,000 ms
コード長 311 bytes
コンパイル時間 2,233 ms
コンパイル使用メモリ 76,588 KB
実行使用メモリ 55,288 KB
最終ジャッジ日時 2024-04-09 20:43:33
合計ジャッジ時間 8,856 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 148 ms
54,920 KB
testcase_01 AC 140 ms
54,576 KB
testcase_02 AC 156 ms
54,908 KB
testcase_03 AC 151 ms
55,096 KB
testcase_04 AC 155 ms
54,924 KB
testcase_05 AC 147 ms
55,260 KB
testcase_06 AC 142 ms
54,848 KB
testcase_07 AC 140 ms
54,276 KB
testcase_08 AC 154 ms
54,556 KB
testcase_09 AC 127 ms
54,652 KB
testcase_10 AC 130 ms
54,608 KB
testcase_11 AC 136 ms
55,052 KB
testcase_12 AC 134 ms
55,288 KB
testcase_13 AC 128 ms
54,832 KB
testcase_14 AC 122 ms
53,284 KB
testcase_15 AC 141 ms
54,880 KB
testcase_16 AC 139 ms
54,208 KB
testcase_17 AC 125 ms
54,652 KB
testcase_18 AC 136 ms
55,164 KB
testcase_19 AC 156 ms
54,900 KB
testcase_20 AC 149 ms
55,072 KB
testcase_21 AC 144 ms
54,880 KB
testcase_22 AC 143 ms
55,216 KB
testcase_23 AC 131 ms
54,708 KB
testcase_24 AC 151 ms
54,656 KB
testcase_25 AC 148 ms
55,012 KB
testcase_26 AC 132 ms
54,572 KB
testcase_27 AC 135 ms
54,560 KB
testcase_28 AC 149 ms
54,920 KB
testcase_29 AC 160 ms
54,764 KB
testcase_30 AC 144 ms
54,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		long n=sc.nextLong(),z1=sc.nextLong(),zn=0,t,i;
		for(i=1;i<n;i++) {
			if(i>n-2) zn=sc.nextLong();
			else t=sc.nextLong();
		}
		sc.close();
		System.out.print(zn+"/"+z1);
	}
}
0