結果

問題 No.661 ハローキティはりんご3個分
コンテスト
ユーザー phspls
提出日時 2020-02-08 17:58:41
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 975µs
コード長 597 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,452 ms
コンパイル使用メモリ 176,932 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-09-04 00:03:02
合計ジャッジ時間 2,460 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use std::io::Read;

fn main() {
    let mut all_data = String::new();
    std::io::stdin().read_to_string(&mut all_data).ok();
    let mut all_data = all_data.trim().split('\n').map(|s| s.trim());
    let i: usize = all_data.next().unwrap().parse().unwrap();
    all_data.take(i).map(|s| s.parse::<usize>().unwrap()).for_each(|n| {
        if n % 40 == 0 {
            print!("ikisugi");
        } else if n % 8 == 0 {
            print!("iki");
        } else if n % 10 == 0 {
            print!("sugi");
        } else {
            print!("{}", n / 3);
        }
        println!("");
    });
}
0