結果

問題 No.661 ハローキティはりんご3個分
ユーザー kou_kkkkou_kkk
提出日時 2023-10-02 12:33:06
言語 Nim
(2.0.2)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 3,559 ms
コンパイル使用メモリ 67,680 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-10-02 12:33:14
合計ジャッジ時間 4,230 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils

let i = parseInt readLine stdin

for _ in 0..<i:
  let n = parseInt readLine stdin
  
  if n mod 40 == 0:
    echo "ikisugi"
    continue
    
  if n mod 8 == 0:
    echo "iki"
    continue
  
  if n mod 10 == 0:
    echo "sugi"
    continue
  
  else:
    echo n div 3
0