結果
問題 | No.3059 tan |
ユーザー | akakimidori |
提出日時 | 2020-04-01 21:56:21 |
言語 | Rust (1.77.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 377 bytes |
コンパイル時間 | 987 ms |
コンパイル使用メモリ | 134,360 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-09 18:07:48 |
合計ジャッジ時間 | 1,510 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | AC | 1 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,376 KB |
ソースコード
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 == 45 { println!("Y"); } else { println!("N"); } } } fn main() { run(); }