結果

問題 No.661 ハローキティはりんご3個分
ユーザー gemmaro
提出日時 2019-10-07 19:55:54
言語 Ruby
(3.4.1)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 439 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-10-14 13:14:42
合計ジャッジ時間 1,735 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

i = gets.chomp.to_i
i.times {
    n = gets.chomp.to_i
    is_ok = true
    if n % 8 == 0
        print "iki"
        is_ok = false
    end
    if n % 10 == 0
        print "sugi"
        is_ok = false
    end
    if is_ok
        p n / 3
    else
        puts
    end
}
0