結果
| 問題 |
No.1217 せしすせそ
|
| コンテスト | |
| ユーザー |
uw_yu1rabbit
|
| 提出日時 | 2020-09-04 21:22:31 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 2,000 ms |
| コード長 | 647 bytes |
| コンパイル時間 | 2,956 ms |
| コンパイル使用メモリ | 96,156 KB |
| 最終ジャッジ日時 | 2025-01-14 04:50:23 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<iostream>
#include<cstdint>
#include<cstddef>
using namespace std;
using i32 = int_fast32_t;
using i64 = int_fast64_t;
using usize = size_t;
#define rep(i, n) for (usize i = 0; i < (usize)(n); i++)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
using P = pair<i64,i64>;
int main(){
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
string s;
cin >> s;
string t = "abcdefghijklmnopqrstuvwxyz";
string ans = "to";
rep(i,s.size()){
if(s[i] != t[i]){
ans = t[i] + ans + s[i];
}
}
cout << ans << endl;
}
uw_yu1rabbit