結果
問題 | No.1217 せしすせそ |
ユーザー |
|
提出日時 | 2022-01-13 22:42:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 1,559 ms |
コンパイル使用メモリ | 167,128 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 16:41:51 |
合計ジャッジ時間 | 2,022 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {string s;cin >> s;char ch = 'a';string out = "to";for(int i=0;i<26;i++) {if(s[i] == ch) ch++;else {out = ch + out;out += s[i];break;}}cout << out << '\n';return 0;}