結果

問題 No.280 歯車の問題(1)
ユーザー htensaihtensai
提出日時 2020-05-07 13:47:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 159 ms / 1,000 ms
コード長 309 bytes
コンパイル時間 2,107 ms
コンパイル使用メモリ 72,556 KB
実行使用メモリ 58,768 KB
最終ジャッジ日時 2023-09-16 07:52:20
合計ジャッジ時間 11,305 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 154 ms
56,804 KB
testcase_01 AC 149 ms
56,864 KB
testcase_02 AC 152 ms
57,016 KB
testcase_03 AC 148 ms
57,068 KB
testcase_04 AC 151 ms
56,776 KB
testcase_05 AC 152 ms
56,800 KB
testcase_06 AC 154 ms
56,904 KB
testcase_07 AC 154 ms
58,768 KB
testcase_08 AC 152 ms
56,892 KB
testcase_09 AC 156 ms
56,572 KB
testcase_10 AC 157 ms
56,712 KB
testcase_11 AC 152 ms
56,776 KB
testcase_12 AC 159 ms
57,112 KB
testcase_13 AC 149 ms
56,828 KB
testcase_14 AC 156 ms
56,684 KB
testcase_15 AC 154 ms
56,532 KB
testcase_16 AC 154 ms
56,732 KB
testcase_17 AC 152 ms
56,824 KB
testcase_18 AC 149 ms
56,768 KB
testcase_19 AC 155 ms
56,928 KB
testcase_20 AC 155 ms
56,892 KB
testcase_21 AC 155 ms
56,580 KB
testcase_22 AC 158 ms
56,732 KB
testcase_23 AC 159 ms
56,960 KB
testcase_24 AC 151 ms
56,648 KB
testcase_25 AC 151 ms
56,744 KB
testcase_26 AC 156 ms
56,764 KB
testcase_27 AC 154 ms
56,816 KB
testcase_28 AC 150 ms
54,980 KB
testcase_29 AC 158 ms
56,700 KB
testcase_30 AC 149 ms
57,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		long first = sc.nextLong();
		long last = first;
		for (int i = 1; i < n; i++) {
		    last = sc.nextLong();
		}
		System.out.println(last + "/" + first);
	}
}
0