結果
問題 |
No.1992 Tendon Walk
|
ユーザー |
|
提出日時 | 2022-07-02 12:09:50 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 37 ms / 2,000 ms |
コード長 | 203 bytes |
コンパイル時間 | 307 ms |
コンパイル使用メモリ | 82,544 KB |
実行使用メモリ | 53,672 KB |
最終ジャッジ日時 | 2024-11-27 05:35:27 |
合計ジャッジ時間 | 1,261 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
move='aabbabb' now=cnt=ind=0 x=int(input()) while True: if move[ind]=='a': now+=2;cnt+=2 else: now-=1;cnt+=1 if now==x: print(cnt) break ind+=1;ind%=7