結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー mrthrk0309mrthrk0309
提出日時 2016-12-07 15:36:30
言語 Ruby
(3.3.0)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 597 ms
コンパイル使用メモリ 11,432 KB
実行使用メモリ 15,344 KB
最終ジャッジ日時 2023-08-18 19:45:17
合計ジャッジ時間 3,357 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
15,152 KB
testcase_01 AC 68 ms
15,160 KB
testcase_02 AC 68 ms
15,088 KB
testcase_03 AC 71 ms
15,028 KB
testcase_04 AC 71 ms
15,236 KB
testcase_05 AC 69 ms
15,028 KB
testcase_06 AC 70 ms
15,168 KB
testcase_07 AC 67 ms
15,252 KB
testcase_08 AC 68 ms
15,168 KB
testcase_09 AC 72 ms
15,028 KB
testcase_10 AC 70 ms
15,316 KB
testcase_11 AC 70 ms
15,164 KB
testcase_12 AC 69 ms
15,108 KB
testcase_13 AC 68 ms
15,232 KB
testcase_14 AC 67 ms
15,044 KB
testcase_15 AC 69 ms
15,344 KB
testcase_16 AC 67 ms
15,264 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# Here your code !

a = gets
b = gets
a_i = a.to_i
b_i = b.to_i

unless 0 <= a_i && a_i <= 12345
  puts "NG"
  exit
end

unless 0 <= b_i && b_i <= 12345
  puts "NG"
  exit
end

unless a == a_i.to_s + "\n"
  puts "NG"
  exit
end

unless b == b_i.to_s + "\n"
  puts "NG"
  exit
end

puts "OK"

0