結果
| 問題 |
No.661 ハローキティはりんご3個分
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-08 17:58:41 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 597 bytes |
| コンパイル時間 | 13,012 ms |
| コンパイル使用メモリ | 378,048 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-25 09:30:57 |
| 合計ジャッジ時間 | 13,804 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
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!("");
});
}