結果
問題 | No.661 ハローキティはりんご3個分 |
ユーザー | sanfrecce-osaka |
提出日時 | 2022-04-01 20:08:36 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 73 ms / 2,000 ms |
コード長 | 269 bytes |
コンパイル時間 | 328 ms |
コンパイル使用メモリ | 11,548 KB |
実行使用メモリ | 15,332 KB |
最終ジャッジ日時 | 2023-08-12 16:24:40 |
合計ジャッジ時間 | 979 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
15,084 KB |
testcase_01 | AC | 67 ms
15,128 KB |
testcase_02 | AC | 67 ms
15,320 KB |
testcase_03 | AC | 67 ms
15,252 KB |
testcase_04 | AC | 66 ms
15,332 KB |
コンパイルメッセージ
Syntax OK
ソースコード
gets.chomp.to_i.times.map { gets.chomp.to_i }.map do case _1 in -> (n) { n % 8 == 0 && n % 10 == 0 } then 'ikisugi' in -> (n) { n % 10 == 0 } then 'sugi' in -> (n) { n % 8 == 0 } then 'iki' else _1 / 3 end end.then(&method(:puts))