結果

問題 No.280 歯車の問題(1)
ユーザー tentententen
提出日時 2021-01-18 18:43:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 162 ms / 1,000 ms
コード長 292 bytes
コンパイル時間 2,343 ms
コンパイル使用メモリ 73,116 KB
実行使用メモリ 59,016 KB
最終ジャッジ日時 2023-08-21 01:50:19
合計ジャッジ時間 12,085 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 150 ms
56,792 KB
testcase_01 AC 148 ms
56,796 KB
testcase_02 AC 150 ms
56,524 KB
testcase_03 AC 148 ms
56,664 KB
testcase_04 AC 150 ms
54,360 KB
testcase_05 AC 151 ms
56,800 KB
testcase_06 AC 145 ms
56,624 KB
testcase_07 AC 151 ms
56,620 KB
testcase_08 AC 159 ms
56,572 KB
testcase_09 AC 148 ms
56,568 KB
testcase_10 AC 147 ms
56,400 KB
testcase_11 AC 145 ms
57,088 KB
testcase_12 AC 148 ms
56,704 KB
testcase_13 AC 149 ms
56,820 KB
testcase_14 AC 151 ms
56,404 KB
testcase_15 AC 151 ms
56,660 KB
testcase_16 AC 150 ms
56,872 KB
testcase_17 AC 159 ms
56,316 KB
testcase_18 AC 158 ms
56,496 KB
testcase_19 AC 162 ms
56,712 KB
testcase_20 AC 157 ms
56,848 KB
testcase_21 AC 149 ms
57,008 KB
testcase_22 AC 150 ms
58,648 KB
testcase_23 AC 151 ms
56,700 KB
testcase_24 AC 146 ms
56,656 KB
testcase_25 AC 147 ms
57,184 KB
testcase_26 AC 148 ms
56,988 KB
testcase_27 AC 149 ms
56,576 KB
testcase_28 AC 146 ms
56,528 KB
testcase_29 AC 148 ms
56,852 KB
testcase_30 AC 146 ms
59,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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