結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
turner18_jp
|
| 提出日時 | 2017-12-14 15:21:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 5,000 ms |
| コード長 | 366 bytes |
| コンパイル時間 | 96 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-14 13:11:47 |
| 合計ジャッジ時間 | 1,660 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
x = int(input()) y = int(input()) l = int(input()) count = 0 if y < 0: count += 2 elif x >= 1 or x < 0: count += 1 x = abs(x) y = abs(y) if x <= l and not x == 0: count += 1 elif x % l == 0: count += x / l else: count += x // l + 1 if y <= l and not y == 0: count += 1 elif y % l == 0: count += y / l else: count += y // l + 1 print(int(count))
turner18_jp