結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2019-01-19 12:12:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 122 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,700 KB |
最終ジャッジ日時 | 2024-07-16 01:15:17 |
合計ジャッジ時間 | 6,874 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 1 TLE * 1 -- * 21 |
ソースコード
x = abs(int(input())) y = abs(int(input())) k = int(input()) count = 0 x_move, y_move = 0, 0 while x > 0: count = count + 1 x_move = 1 x = x - k while y > 0: count = count + 1 y_move = 1 y = y -k # move direction if x_move * y_move == 1: count = count + 1 print(count)