結果

問題 No.280 歯車の問題(1)
ユーザー ぴろず
提出日時 2015-09-18 22:40:41
言語 Java
(openjdk 23)
結果
AC  
実行時間 171 ms / 1,000 ms
コード長 311 bytes
コンパイル時間 2,451 ms
コンパイル使用メモリ 76,024 KB
実行使用メモリ 42,620 KB
最終ジャッジ日時 2024-07-19 07:03:10
合計ジャッジ時間 9,006 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

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