結果

問題 No.671 1000000007
ユーザー muu16muu16
提出日時 2018-11-23 21:56:51
言語 Ruby
(3.3.0)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 148 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 11,500 KB
実行使用メモリ 15,308 KB
最終ジャッジ日時 2023-08-26 04:40:51
合計ジャッジ時間 1,703 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
15,036 KB
testcase_01 AC 78 ms
15,196 KB
testcase_02 AC 80 ms
15,180 KB
testcase_03 AC 72 ms
15,180 KB
testcase_04 AC 71 ms
15,132 KB
testcase_05 AC 72 ms
15,040 KB
testcase_06 AC 74 ms
15,228 KB
testcase_07 AC 70 ms
15,308 KB
testcase_08 AC 70 ms
15,284 KB
testcase_09 AC 69 ms
15,124 KB
testcase_10 AC 71 ms
15,032 KB
testcase_11 AC 70 ms
15,136 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:11: warning: possibly useless use of == in void context
Syntax OK

ソースコード

diff #

a = "1000000007"
c = a.length
#cは数値
b = gets.chomp
d = b.length
#dも数値
if c < d
  p d - c
elsif c > d
  p c - d
else c == d
  p c - d
end
0