結果

問題 No.48 ロボットの操縦
ユーザー souhei osouhei o
提出日時 2022-12-03 14:07:21
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 8,252 KB
最終ジャッジ日時 2023-07-31 23:57:06
合計ジャッジ時間 1,741 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
8,232 KB
testcase_02 AC 16 ms
8,072 KB
testcase_03 AC 16 ms
8,076 KB
testcase_04 AC 16 ms
8,224 KB
testcase_05 WA -
testcase_06 AC 16 ms
8,132 KB
testcase_07 AC 15 ms
8,084 KB
testcase_08 AC 16 ms
8,072 KB
testcase_09 AC 17 ms
8,172 KB
testcase_10 AC 16 ms
8,076 KB
testcase_11 AC 17 ms
8,084 KB
testcase_12 AC 17 ms
8,076 KB
testcase_13 AC 17 ms
8,056 KB
testcase_14 AC 16 ms
8,076 KB
testcase_15 AC 16 ms
8,224 KB
testcase_16 AC 16 ms
8,060 KB
testcase_17 AC 16 ms
8,224 KB
testcase_18 AC 16 ms
8,124 KB
testcase_19 AC 17 ms
8,076 KB
testcase_20 AC 16 ms
8,076 KB
testcase_21 AC 16 ms
8,192 KB
testcase_22 AC 16 ms
8,176 KB
testcase_23 AC 16 ms
8,180 KB
testcase_24 AC 16 ms
8,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X = int(input())
Y = int(input())
L = int(input())

import math

def process_counter(X,Y,L):
    counter=0
    if Y<0:
        counter+=2
    else:
        counter+=1
    counter+=math.ceil(abs(Y)/L)
    counter+=math.ceil(abs(X)/L)
    return counter
    
print(process_counter(X,Y,L))
0