結果
| 問題 |
No.1217 せしすせそ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-04 21:28:15 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 458 bytes |
| コンパイル時間 | 731 ms |
| コンパイル使用メモリ | 74,544 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-26 11:53:04 |
| 合計ジャッジ時間 | 1,381 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <map>
using namespace std;
typedef long long ll;
#define rep(i,n) for (int i = 0; i < int(n);i++)
int main(){
string s;
cin >> s;
char c = 'a';
string ans = "";
rep(i,26){
if (s[i] != c) {
ans += c;
ans += "to";
ans += s[i];
break;
}
c++;
}
cout << ans << endl;
return 0;
}