以下の内容はhttps://blog.hamayanhamayan.com/entry/2021/03/27/224440より取得しました。


Rotate [AtCoder Beginner Contest 197(Sponsored by Panasonic) A]

https://atcoder.jp/contests/abc197/tasks/abc197_a

解説

https://atcoder.jp/contests/abc197/submissions/21324500

文字列操作を頑張る問題。
c+であればsubstrを使うと、部分文字列を取り出せる。

string S;
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> S;
    string ans = S.substr(1) + S[0];
    cout << ans << endl;
}



以上の内容はhttps://blog.hamayanhamayan.com/entry/2021/03/27/224440より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14