結果
問題 | No.280 歯車の問題(1) |
ユーザー |
![]() |
提出日時 | 2020-05-07 13:47:40 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 162 ms / 1,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 2,109 ms |
コンパイル使用メモリ | 76,620 KB |
実行使用メモリ | 55,160 KB |
最終ジャッジ日時 | 2024-07-03 09:24:38 |
合計ジャッジ時間 | 9,074 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long first = sc.nextLong(); long last = first; for (int i = 1; i < n; i++) { last = sc.nextLong(); } System.out.println(last + "/" + first); } }