結果

問題 No.661 ハローキティはりんご3個分
ユーザー yocto_sothothyocto_sothoth
提出日時 2020-11-17 23:53:45
言語 Ruby
(3.3.0)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 209 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 11,144 KB
実行使用メモリ 15,144 KB
最終ジャッジ日時 2023-09-30 14:33:35
合計ジャッジ時間 1,163 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,144 KB
testcase_01 AC 79 ms
15,016 KB
testcase_02 AC 79 ms
15,036 KB
testcase_03 AC 78 ms
15,048 KB
testcase_04 AC 77 ms
15,136 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

i = gets.to_i
n = Array.new(i) { gets.to_i }

n.each do |e|
  if e % 8 == 0 && e % 10 == 0
    puts :ikisugi
  elsif e % 10 == 0
    puts :sugi
  elsif e % 8 == 0
    puts :iki
  else
    puts e / 3
  end
end
0