結果
問題 | No.48 ロボットの操縦 |
ユーザー |
|
提出日時 | 2024-02-13 16:30:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-28 18:30:54 |
合計ジャッジ時間 | 1,513 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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 + int(abs(X) / L)) if X % L != 0: east_cnt += 1 print(north_cnt + east_cnt)