結果
| 問題 |
No.1992 Tendon Walk
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-06 15:01:12 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 242 bytes |
| コンパイル時間 | 98 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-21 16:20:25 |
| 合計ジャッジ時間 | 856 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
X = int(input())
S = "AABBABB"
x = 0
i = 0
xx = 0
while True:
if S[i] == 'A':
x += 2
xx += 2
else:
x -= 1
xx += 1
if x == X:
break
i += 1
if i >= len(S):
i = 0
print(xx)