結果

問題 No.1992 Tendon Walk
ユーザー titan23titan23
提出日時 2022-07-01 22:23:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 86,852 KB
実行使用メモリ 71,448 KB
最終ジャッジ日時 2023-08-17 09:53:30
合計ジャッジ時間 1,549 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,448 KB
testcase_01 AC 68 ms
71,272 KB
testcase_02 AC 67 ms
71,268 KB
testcase_03 AC 67 ms
71,344 KB
testcase_04 AC 70 ms
71,448 KB
testcase_05 AC 67 ms
71,328 KB
testcase_06 AC 69 ms
71,400 KB
testcase_07 AC 67 ms
71,420 KB
testcase_08 AC 69 ms
71,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()

#  -----------------------  #

x = int(input())
ans = 0
now = 0
a = 0
while x != now:
  if a % 7 in {0, 1, 4}:
    ans += 2
    now += 2
  else:
    ans += 1
    now -= 1
  a += 1
print(ans)
0