結果

問題 No.73 helloworld
コンテスト
ユーザー brthyyjp
提出日時 2021-06-23 22:25:08
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 218 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 170 ms
コンパイル使用メモリ 85,200 KB
実行使用メモリ 67,308 KB
最終ジャッジ日時 2026-03-11 02:57:33
合計ジャッジ時間 1,535 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 11 RE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

x = int(input())
y = int(input())
l = int(input())

x = abs(x)

if y >= 0:
    if x == 0:
        ans = (y+l-1)//l
    else:
        ans = (y+l-1)//l+1+(x+l-1)//l
else:
    ans = 1+(x+l-1)//l+1+(-y+l-1)//l

print(ans)
0