結果
| 問題 | No.729 文字swap |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-07 21:20:53 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 222 bytes |
| 記録 | |
| コンパイル時間 | 1,091 ms |
| コンパイル使用メモリ | 178,780 KB |
| 実行使用メモリ | 7,968 KB |
| 最終ジャッジ日時 | 2026-05-23 02:08:49 |
| 合計ジャッジ時間 | 2,044 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
typedef long long i64;
using std::cout;
using std::endl;
using std::cin;
int main(){
std::string s; cin >> s;
int a, b; cin >> a >> b;
std::swap(s[a], s[b]);
cout << s << endl;
return 0;
}