結果

問題 No.280 歯車の問題(1)
コンテスト
ユーザー Mcpu3
提出日時 2018-09-02 17:41:53
言語 Java
(openjdk 26.0.2.1 + ACL)
コンパイル:
javac -J-Duser.language=en -encoding UTF8 -cp /opt/aclib/ac_library.jar _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true -cp .:/opt/aclib/ac_library.jar _class_
結果
AC  
実行時間 64 ms / 1,000 ms
+ 420µs
コード長 311 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,485 ms
コンパイル使用メモリ 86,288 KB
実行使用メモリ 46,124 KB
最終ジャッジ日時 2026-09-08 06:24:15
合計ジャッジ時間 6,411 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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