結果

問題 No.280 歯車の問題(1)
ユーザー phspls
提出日時 2020-05-21 23:05:20
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 340 bytes
コンパイル時間 12,642 ms
コンパイル使用メモリ 384,264 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-02 09:06:19
合計ジャッジ時間 15,259 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut n = String::new();
    std::io::stdin().read_line(&mut n).ok();
    let n: usize = n.trim().parse().unwrap();
    let mut a = String::new();
    std::io::stdin().read_line(&mut a).ok();
    let a: Vec<usize> = a.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();
    println!("{}/{}", a[n-1], a[0]);
}
0