結果

問題 No.280 歯車の問題(1)
ユーザー tsunabittsunabit
提出日時 2020-03-25 13:12:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 172 ms / 1,000 ms
コード長 327 bytes
コンパイル時間 5,093 ms
コンパイル使用メモリ 73,836 KB
実行使用メモリ 58,692 KB
最終ジャッジ日時 2023-08-30 09:32:43
合計ジャッジ時間 14,223 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 166 ms
56,984 KB
testcase_01 AC 162 ms
56,720 KB
testcase_02 AC 171 ms
56,872 KB
testcase_03 AC 164 ms
54,848 KB
testcase_04 AC 158 ms
56,712 KB
testcase_05 AC 162 ms
56,800 KB
testcase_06 AC 165 ms
56,864 KB
testcase_07 AC 172 ms
56,496 KB
testcase_08 AC 168 ms
56,996 KB
testcase_09 AC 171 ms
56,664 KB
testcase_10 AC 168 ms
56,468 KB
testcase_11 AC 167 ms
56,840 KB
testcase_12 AC 167 ms
56,840 KB
testcase_13 AC 162 ms
57,016 KB
testcase_14 AC 167 ms
56,992 KB
testcase_15 AC 168 ms
56,640 KB
testcase_16 AC 168 ms
56,444 KB
testcase_17 AC 160 ms
56,932 KB
testcase_18 AC 161 ms
56,692 KB
testcase_19 AC 169 ms
58,692 KB
testcase_20 AC 169 ms
57,000 KB
testcase_21 AC 169 ms
56,576 KB
testcase_22 AC 168 ms
57,000 KB
testcase_23 AC 166 ms
56,688 KB
testcase_24 AC 162 ms
56,548 KB
testcase_25 AC 164 ms
56,888 KB
testcase_26 AC 170 ms
57,120 KB
testcase_27 AC 171 ms
56,980 KB
testcase_28 AC 162 ms
54,764 KB
testcase_29 AC 169 ms
56,724 KB
testcase_30 AC 163 ms
56,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

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