結果

問題 No.1992 Tendon Walk
ユーザー lilictakalilictaka
提出日時 2022-07-01 21:32:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 71,464 KB
最終ジャッジ日時 2023-08-17 08:51:29
合計ジャッジ時間 1,659 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,196 KB
testcase_01 AC 71 ms
71,452 KB
testcase_02 AC 68 ms
71,144 KB
testcase_03 AC 74 ms
71,420 KB
testcase_04 AC 70 ms
71,408 KB
testcase_05 AC 71 ms
71,424 KB
testcase_06 AC 68 ms
71,464 KB
testcase_07 AC 70 ms
71,260 KB
testcase_08 AC 69 ms
71,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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