結果
問題 | No.48 ロボットの操縦 |
ユーザー |
|
提出日時 | 2023-09-20 14:41:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 255 bytes |
コンパイル時間 | 80 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-06 09:52:23 |
合計ジャッジ時間 | 1,665 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 WA * 11 |
ソースコード
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 = c+sum print(ans)