結果
| 問題 | No.2864 String of yuusaan | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-10-27 02:24:52 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 223 bytes | 
| コンパイル時間 | 319 ms | 
| コンパイル使用メモリ | 82,580 KB | 
| 実行使用メモリ | 66,820 KB | 
| 最終ジャッジ日時 | 2024-10-27 02:24:55 | 
| 合計ジャッジ時間 | 2,513 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 18 RE * 1 | 
ソースコード
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]) 
            
            
            
        