結果
| 問題 |
No.729 文字swap
|
| コンテスト | |
| ユーザー |
ei1333333
|
| 提出日時 | 2018-09-07 21:20:37 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 20 ms / 2,000 ms |
| コード長 | 176 bytes |
| コンパイル時間 | 2,063 ms |
| コンパイル使用メモリ | 191,748 KB |
| 最終ジャッジ日時 | 2025-01-06 12:52:43 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using int64 = long long;
int main() {
string s;
int x, y;
cin >> s >> x >> y;
swap(s[x], s[y]);
cout << s << endl;
}
ei1333333