結果

問題 No.423 ハムスター語初級(数詞)
ユーザー gemmarogemmaro
提出日時 2019-12-17 10:25:18
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 102 bytes
コンパイル時間 530 ms
コンパイル使用メモリ 11,468 KB
実行使用メモリ 15,364 KB
最終ジャッジ日時 2023-09-15 19:22:36
合計ジャッジ時間 2,458 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,244 KB
testcase_01 AC 84 ms
15,364 KB
testcase_02 AC 81 ms
15,216 KB
testcase_03 AC 80 ms
15,116 KB
testcase_04 AC 82 ms
15,068 KB
testcase_05 AC 81 ms
15,092 KB
testcase_06 AC 78 ms
15,016 KB
testcase_07 AC 77 ms
15,272 KB
testcase_08 AC 78 ms
15,184 KB
testcase_09 AC 78 ms
15,128 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

n = gets.chomp
result = n
result += 'ham' unless n == 'ham'
puts result
0