結果

問題 No.8059 tan
ユーザー akakimidori
提出日時 2020-04-01 21:55:18
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 377 bytes
コンパイル時間 13,074 ms
コンパイル使用メモリ 385,828 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-27 10:43:07
合計ジャッジ時間 13,407 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::Read;

fn run() {
    let mut s = String::new();
    std::io::stdin().read_to_string(&mut s).unwrap();
    let mut it = s.trim().split_whitespace();
    it.next();
    for x in it.map(|s| s.parse::<usize>().unwrap()) {
        if x == 0 || x == 30 {
            println!("Y");
        } else {
            println!("N");
        }
    }
}

fn main() {
    run();
}
0