結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
MtBotO
|
| 提出日時 | 2017-09-23 11:15:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 363 bytes |
| コンパイル時間 | 267 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-14 03:59:34 |
| 合計ジャッジ時間 | 1,970 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 12 |
ソースコード
def main():
EW = int(input())
NS = int(input())
v = int(input())
ans = round(abs(NS)/v)
ans = ans + round(abs(EW)/v)
if not( EW%v == 0):ans += 1
if not( NS%v == 0):ans += 1
if not(EW == 0) :ans += 1
if NS < 0 and EW == 0:
ans +=2
elif NS < 0:
ans +=1
print(ans)
if __name__=="__main__":
main()
MtBotO