結果
問題 | 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 = 0i = 0xx = 0while True:if S[i] == 'A':x += 2xx += 2else:x -= 1xx += 1if x == X:breaki += 1if i >= len(S):i = 0print(xx)