結果
問題 |
No.280 歯車の問題(1)
|
ユーザー |
|
提出日時 | 2018-09-02 17:41:53 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 173 ms / 1,000 ms |
コード長 | 311 bytes |
コンパイル時間 | 2,541 ms |
コンパイル使用メモリ | 76,664 KB |
実行使用メモリ | 55,228 KB |
最終ジャッジ日時 | 2024-10-01 21:05:22 |
合計ジャッジ時間 | 10,621 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
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); } }