結果

問題 No.671 1000000007
ユーザー muu16muu16
提出日時 2018-08-29 14:27:00
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 123 bytes
コンパイル時間 223 ms
コンパイル使用メモリ 11,248 KB
実行使用メモリ 15,308 KB
最終ジャッジ日時 2023-10-11 16:40:07
合計ジャッジ時間 2,130 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,100 KB
testcase_01 AC 82 ms
15,308 KB
testcase_02 AC 82 ms
15,192 KB
testcase_03 AC 83 ms
15,240 KB
testcase_04 AC 84 ms
15,188 KB
testcase_05 AC 82 ms
15,256 KB
testcase_06 AC 82 ms
15,184 KB
testcase_07 AC 82 ms
15,192 KB
testcase_08 AC 82 ms
15,300 KB
testcase_09 AC 83 ms
15,148 KB
testcase_10 AC 83 ms
15,096 KB
testcase_11 AC 82 ms
15,044 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

number = "1000000007" .index("7")
you = gets.chomp
youre = you .index("7")
total = number - youre
kkk = total.abs

puts kkk
0