結果
| 問題 |
No.2868 Another String of yuusaan
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-25 21:22:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 280 bytes |
| コンパイル時間 | 452 ms |
| コンパイル使用メモリ | 82,728 KB |
| 実行使用メモリ | 53,904 KB |
| 最終ジャッジ日時 | 2025-06-25 21:22:22 |
| 合計ジャッジ時間 | 2,229 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 11 |
ソースコード
MI=lambda:map(int,input().split())
n,k=MI()
d=n-1
h=[1]
while h[-1]<k and len(h)-1<d:
h.append(min(k,4*h[-1]+3))
d=len(h)-1
def g(d,k):
for c in"yuusaan":
t=h[d]if c in"ua"else 1
if k>t:k-=t
else:return g(d-1,k)if d and c in"ua"else c
print(g(d,k))