結果

問題 No.46 はじめのn歩
ユーザー Cecilia702Cecilia702
提出日時 2023-06-21 16:02:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 337 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 7,996 KB
最終ジャッジ日時 2023-09-11 11:13:06
合計ジャッジ時間 7,439 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,916 KB
testcase_01 AC 17 ms
7,996 KB
testcase_02 AC 16 ms
7,964 KB
testcase_03 AC 16 ms
7,988 KB
testcase_04 AC 16 ms
7,864 KB
testcase_05 AC 16 ms
7,928 KB
testcase_06 AC 16 ms
7,960 KB
testcase_07 AC 16 ms
7,952 KB
testcase_08 TLE -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = input()

a = int(n.split(" ",1)[0]) if n.split(" ",1)[0].isdigit() else -1
b = int(n.split(" ",1)[1]) if n.split(" ",1)[1].isdigit() else -1

c = math.pow(10,9)
if a > c or a < 1 or b > c or b < 1:exit()

step = 0;count = 0

while(True):
    if step < b:
        step += a
        count += 1
    else:break

print(count)
0