結果

問題 No.2864 String of yuusaan
コンテスト
ユーザー yuunegi
提出日時 2026-02-16 11:54:50
言語 C++23
(gcc 15.2.0 + boost 1.89.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 247 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,334 ms
コンパイル使用メモリ 333,792 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2026-02-16 11:54:55
合計ジャッジ時間 4,833 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;
int main(void){
    long long n,k;
    cin>>n>>k;
    string s="yuusaan";
    if((k-1)%6!=0){
        cout<<s[(k-1)%6]<<endl;
    }else{
        cout<<((k-1)%12==0?"y":"n")<<endl;
    }
    return 0;
}
0