結果
| 問題 |
No.993 青色
|
| コンテスト | |
| ユーザー |
ei1906
|
| 提出日時 | 2020-02-21 21:21:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 1,077 bytes |
| コンパイル時間 | 630 ms |
| コンパイル使用メモリ | 75,316 KB |
| 最終ジャッジ日時 | 2024-11-14 22:07:50 |
| 合計ジャッジ時間 | 1,090 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp:18:28: error: extended character is not valid in an identifier
18 | #define SUM(n) ((n)+1)*(n)/2 //1〜nまでの総和を求める式
| ^
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <deque>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <cstring>
#include <iomanip>
#include <utility>
#define rep(i,n) for(int i=0;i<(n);i++)
#define reps(i,n) for(int i=1;i<=(n);i++)
#define lol long long
#define SUM(n) ((n)+1)*(n)/2 //1〜nまでの総和を求める式
#define mp make_pair
#define fi first
#define se second
#define pu push_back
#define SYOU(x) setprecision(x+1) //小数点桁数を指定する
#define abs(x,y) (max(x,y)-min(x,y))
#define all(v) v.begin(),v.end()
#define UPDight(a,b) (a+b-1)/b //小数点切り上げ
const int INF = 0x3f3f3f3f;
const long long LINF = 0x3f3f3f3f3f3f3f3fLL;
const int MOD=int(1e9)+7;
using namespace std;
using pii = pair<int,int>;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin >> s;
rep(i,s.size()){
if(s[i] == 'a' && s[i+1] == 'o'){
cout << "ki";
i++;
} else {
cout << s[i];
}
}
cout << '\n';
return 0;
}
ei1906