#31138: 新手の解(c++)


jason096727@gmail.com (Jason Ho)

學校 : 高雄市苓雅區福東國民小學
編號 : 189939
來源 : [150.116.71.76]
最後登入時間 :
2023-07-15 21:32:51
b759. 我明明就有說過= = | From: [150.116.71.227] | 發表日期 : 2022-07-14 13:19

#include <bits/stdc++.h>
using namespace std;

int main()
{
    string x;
    while (cin >> x){
        for (int i=0; i<x.length(); i++){
            for (int j=i; j<x.length(); j++){
                cout << x[j];
            }
            for (int k=0; k<i; k++){
                cout << x[k];
            }
            cout << '\n';
        }
    }
    
    return 0;
}

 
ZeroJudge Forum