結果
| 問題 | No.2864 String of yuusaan | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-10-27 02:25:55 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 225 bytes | 
| コンパイル時間 | 347 ms | 
| コンパイル使用メモリ | 82,428 KB | 
| 実行使用メモリ | 65,772 KB | 
| 最終ジャッジ日時 | 2024-10-27 02:25:58 | 
| 合計ジャッジ時間 | 2,256 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 17 WA * 1 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-1])
else:
    index = K%len(S2)
    print(S2[index]) 
            
            
            
        