結果
| 問題 | No.661 ハローキティはりんご3個分 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-05-24 13:45:52 | 
| 言語 | Rust (1.83.0 + proconio) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 564 bytes | 
| コンパイル時間 | 23,429 ms | 
| コンパイル使用メモリ | 403,676 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-28 17:28:01 | 
| 合計ジャッジ時間 | 14,391 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 5 | 
ソースコード
use std::io::stdin;
fn read_i32() -> i32 {
  let mut s = String::new();
  stdin().read_line(&mut s).unwrap();
  s.trim().parse::<i32>().unwrap()
}
fn main() {
  let count = read_i32();
  let mut inputs: Vec<i32> = vec![];
  for _ in 0..count {
    let input = read_i32();
    inputs.push(input);
  }
  for input in inputs {
    if input % 8 == 0 && input % 10 == 0 {
      println!("ikisugi");
    } else if input % 8 == 0 {
      println!("iki");
    } else if input % 10 == 0 {
      println!("sugi");
    } else {
      println!("{}", input / 3);
    }
  }
}
            
            
            
        