結果
| 問題 |
No.729 文字swap
|
| コンテスト | |
| ユーザー |
oevl
|
| 提出日時 | 2018-10-07 22:37:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 191 bytes |
| コンパイル時間 | 498 ms |
| コンパイル使用メモリ | 58,816 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-12 14:20:09 |
| 合計ジャッジ時間 | 965 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main() {
string S;
cin >> S;
int a, b;
cin >> a >> b;
swap(S[a], S[b]);
cout << S << endl;
return 0;
}
oevl