結果

問題 No.661 ハローキティはりんご3個分
ユーザー cs027983cs027983
提出日時 2018-03-09 22:47:57
言語 Ruby
(3.3.0)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-18 13:49:21
合計ジャッジ時間 947 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
12,416 KB
testcase_01 AC 85 ms
12,288 KB
testcase_02 AC 87 ms
12,160 KB
testcase_03 AC 87 ms
12,288 KB
testcase_04 AC 82 ms
12,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

size = gets.to_i
check = []
size.times do |i|
  check[i] = gets.to_i
end

check.each do |c|
    print 'iki' if c % 8 == 0
    print 'sugi' if c % 10 == 0
    print c / 3 if (c % 3 == 0) && (c % 10 != 0) && (c % 8 != 0)
    puts
end
0