結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-20 14:42:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 257 bytes |
| コンパイル時間 | 72 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-06 09:53:42 |
| 合計ジャッジ時間 | 1,326 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 8 |
ソースコード
X = int(input())
Y = int(input())
L = int(input())
def need(a,b):
if a%b == 0:
return abs(a)/b
else:
return abs(a)//b+1
c = need(X,L)+need(Y,L)
sum = 0
if X != 0 and Y != 0:
sum += 1
else:
sum += 0
ans = int(c+sum)
print(ans)