結果

問題 No.1992 Tendon Walk
ユーザー 👑 H20H20
提出日時 2022-07-01 21:25:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 71,492 KB
最終ジャッジ日時 2023-08-17 08:35:01
合計ジャッジ時間 1,455 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,252 KB
testcase_01 AC 68 ms
71,456 KB
testcase_02 AC 68 ms
71,220 KB
testcase_03 AC 67 ms
71,352 KB
testcase_04 AC 67 ms
71,492 KB
testcase_05 AC 71 ms
71,308 KB
testcase_06 AC 66 ms
71,364 KB
testcase_07 AC 67 ms
71,340 KB
testcase_08 AC 67 ms
71,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X = int(input())
L = [2,2,-1,-1,2,-1,-1]
v = 0
i = 0
ans = 0
while v!=X:
    v+=L[i%len(L)]
    ans+=abs(L[i%len(L)])
    i+=1
print(ans)
0