結果
問題 | No.48 ロボットの操縦 |
ユーザー |
![]() |
提出日時 | 2020-08-22 20:06:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 401 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-15 12:17:30 |
合計ジャッジ時間 | 2,180 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 22 |
ソースコード
def calc(a, l): a, l = map(abs, divmod(a, l)) return a + l def some(): x, y, l = [int(input()) for i in range(3)] keisuu = 1 ans = 0 if x == 0 or y == 0: keisuu = 0 ans += calc(x, l) ans += calc(y, l) # quo, remain = divmod(x, l) # ans += quo + remain # quo, remain = divmod(y, l) # ans += quo + remain ans += keisuu print(ans) some()