結果

問題 No.661 ハローキティはりんご3個分
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-01-30 07:57:18
言語 Ruby
(3.3.0)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 11,300 KB
実行使用メモリ 15,300 KB
最終ジャッジ日時 2023-10-14 08:10:28
合計ジャッジ時間 1,037 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,220 KB
testcase_01 AC 76 ms
15,064 KB
testcase_02 AC 75 ms
15,044 KB
testcase_03 AC 73 ms
15,240 KB
testcase_04 AC 73 ms
15,300 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

i = gets.chomp.to_i
i.times do
  ni = gets.chomp.to_i
  if ni % 40 == 0
    puts 'ikisugi'
  elsif ni % 10 == 0
    puts 'sugi'
  elsif ni % 8 == 0
    puts 'iki'
  else
    puts ni / 3
  end
end
0