結果

問題 No.1992 Tendon Walk
ユーザー haddock2022haddock2022
提出日時 2022-07-24 10:16:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 87,244 KB
実行使用メモリ 71,484 KB
最終ジャッジ日時 2023-09-20 08:23:56
合計ジャッジ時間 1,734 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,380 KB
testcase_01 AC 69 ms
71,456 KB
testcase_02 AC 69 ms
71,372 KB
testcase_03 AC 70 ms
70,992 KB
testcase_04 AC 70 ms
71,280 KB
testcase_05 AC 68 ms
71,040 KB
testcase_06 AC 70 ms
71,484 KB
testcase_07 AC 70 ms
71,120 KB
testcase_08 AC 70 ms
71,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X = int(input())
dx = [2,2,-1,-1,2,-1,-1]
ans = 0
x = 0
for i in range(100):
    x += dx[i%(len(dx))]
    ans += abs(dx[i%(len(dx))])
    if X == x:
        print(ans)
        break
0