結果
問題 | No.661 ハローキティはりんご3個分 |
ユーザー | jiro8719 |
提出日時 | 2018-06-11 17:38:56 |
言語 | Ruby (3.2.2) |
結果 |
AC
|
実行時間 | 86 ms / 2,000 ms |
コード長 | 256 bytes |
コンパイル時間 | 334 ms |
コンパイル使用メモリ | 11,316 KB |
実行使用メモリ | 15,332 KB |
最終ジャッジ日時 | 2023-09-13 03:06:14 |
合計ジャッジ時間 | 1,302 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 85 ms
15,252 KB |
testcase_01 | AC | 84 ms
15,140 KB |
testcase_02 | AC | 85 ms
15,064 KB |
testcase_03 | AC | 86 ms
15,080 KB |
testcase_04 | AC | 84 ms
15,332 KB |
コンパイルメッセージ
Syntax OK
ソースコード
num = gets.to_i num.times do input = gets.to_i if input % 40 == 0 puts "ikisugi" elsif input % 10 == 0 puts "sugi" elsif input % 8 == 0 puts "iki" else puts input / 3 end end # your code goes here