結果
| 問題 | No.661 ハローキティはりんご3個分 |
| コンテスト | |
| ユーザー |
ジョギング
|
| 提出日時 | 2018-03-17 00:04:34 |
| 言語 | Rust (1.99.0 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 832µs | |
| コード長 | 501 bytes |
| 記録 | |
| コンパイル時間 | 6,324 ms |
| コンパイル使用メモリ | 179,620 KB |
| 実行使用メモリ | 9,788 KB |
| 最終ジャッジ日時 | 2026-10-12 08:05:12 |
| 合計ジャッジ時間 | 7,107 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
use std::io::{stdin, Read};
fn main() {
let mut buf = String::new();
stdin().read_to_string(&mut buf).unwrap();
let mut buf = buf.split_whitespace();
let mut get = || buf.next().unwrap().parse::<i32>().unwrap();
let n = get();
for _ in 0..n {
match get() {
x if x % 8 == 0 && x % 10 == 0 => println!("ikisugi"),
x if x % 8 == 0 => println!("iki"),
x if x % 10 == 0 => println!("sugi"),
x => println!("{}", x / 3),
}
}
}
ジョギング