結果
問題 | No.1992 Tendon Walk |
ユーザー |
👑 |
提出日時 | 2022-07-01 21:22:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 172 ms |
コンパイル使用メモリ | 82,192 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-11-26 03:35:01 |
合計ジャッジ時間 | 972 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
x = int(input())ans = [-1] * 15pos = 0t = 0cnt = 0lst = [2, 2, -1, -1, 2, -1, -1]while 1:try:if ans[pos] == -1:ans[pos] = cntexcept:breakcnt += abs(lst[t])pos += lst[t]t += 1if t == 7:t = 0print(ans[x])