結果

問題 No.280 歯車の問題(1)
ユーザー tenten
提出日時 2021-01-18 18:43:17
言語 Java
(openjdk 23)
結果
AC  
実行時間 177 ms / 1,000 ms
コード長 292 bytes
コンパイル時間 2,270 ms
コンパイル使用メモリ 76,244 KB
実行使用メモリ 42,564 KB
最終ジャッジ日時 2024-12-14 09:29:45
合計ジャッジ時間 10,191 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

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