結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2024-02-13 16:29:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 160 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-28 18:30:52 |
合計ジャッジ時間 | 1,837 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 WA * 5 |
ソースコード
X = int(input()) Y = int(input()) L = int(input()) north_cnt = int(Y / L) east_cnt = 0 if Y % L != 0: north_cnt += 1 if Y < 0: north_cnt += 1 if X != 0: east_cnt += (1 + abs(int(X / L))) if X % L != 0: east_cnt += 1 print(north_cnt + east_cnt)