結果

問題 No.1992 Tendon Walk
ユーザー titan23
提出日時 2022-07-01 22:23:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 82,348 KB
実行使用メモリ 53,432 KB
最終ジャッジ日時 2024-11-26 05:40:58
合計ジャッジ時間 919 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

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