結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2019-09-20 21:15:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 102 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-14 16:05:44 |
合計ジャッジ時間 | 1,708 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 6 |
ソースコード
import math a=int(input()) b=int(input()) c=int(input()) d=0 if b<0: d+=2 d+=math.ceil(-b/c) else: d+=math.ceil(b/c) if a<0: d+=1 d+=math.ceil(-a/c) elif a==0: d+=0 else: d+=1 d+=math.ceil(a/c) print(d)