結果

問題 No.2864 String of yuusaan
ユーザー okaze
提出日時 2024-10-27 02:27:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 82,472 KB
実行使用メモリ 53,428 KB
最終ジャッジ日時 2024-10-27 02:27:46
合計ジャッジ時間 2,230 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
S1 = "yuusaan"
S2 = "yuusaanuusaa"
K -= 1
n = N-1
length = ((n**2) -n + 1)*len(S2)

# if K > length:
#     index = K - length
#     print(S1[index])
# else:
index = K%len(S2)
print(S2[index]) 
0