結果
問題 | No.1992 Tendon Walk |
ユーザー |
|
提出日時 | 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 |
ソースコード
import sysinput = lambda: sys.stdin.readline().rstrip()# ----------------------- #x = int(input())ans = 0now = 0a = 0while x != now:if a % 7 in {0, 1, 4}:ans += 2now += 2else:ans += 1now -= 1a += 1print(ans)