結果

問題 No.671 1000000007
ユーザー mesh1nekomesh1neko
提出日時 2018-08-29 10:25:37
言語 Ruby
(3.2.2)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 112 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 11,468 KB
実行使用メモリ 15,300 KB
最終ジャッジ日時 2023-09-29 12:27:47
合計ジャッジ時間 1,575 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
15,176 KB
testcase_01 AC 71 ms
15,172 KB
testcase_02 AC 71 ms
15,152 KB
testcase_03 AC 68 ms
15,040 KB
testcase_04 AC 63 ms
15,172 KB
testcase_05 AC 63 ms
15,268 KB
testcase_06 AC 64 ms
15,300 KB
testcase_07 AC 65 ms
15,168 KB
testcase_08 AC 67 ms
15,124 KB
testcase_09 AC 67 ms
15,096 KB
testcase_10 AC 65 ms
15,148 KB
testcase_11 AC 65 ms
15,136 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/bin/ruby

input = gets.chomp.scan(/(0)/).size
ideal = '1000000007'.scan(/(0)/).size

puts (ideal - input).abs
0