結果

問題 No.1992 Tendon Walk
ユーザー ikomaikoma
提出日時 2022-07-01 21:59:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 235 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 71,644 KB
最終ジャッジ日時 2023-08-17 09:34:18
合計ジャッジ時間 1,476 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,452 KB
testcase_01 AC 65 ms
71,288 KB
testcase_02 AC 65 ms
71,392 KB
testcase_03 AC 66 ms
71,416 KB
testcase_04 AC 66 ms
71,464 KB
testcase_05 AC 65 ms
71,276 KB
testcase_06 AC 65 ms
71,152 KB
testcase_07 AC 64 ms
71,644 KB
testcase_08 AC 67 ms
71,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X=int(input())


x=0
ans=0
while True:
    for d in [2,2,-1,-1,2,-1,-1]:
        x+=d
        ans+=abs(d)
        if x==X:
            print(ans)
            exit()
0