結果
| 問題 | No.1992 Tendon Walk |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-06 15:01:12 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 223µs | |
| コード長 | 242 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-05 16:40:06 |
| 合計ジャッジ時間 | 1,258 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)