結果

問題 No.729 文字swap
ユーザー otoroshiii
提出日時 2018-09-22 22:26:08
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 1,202 ms
コンパイル使用メモリ 158,284 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 01:09:49
合計ジャッジ時間 1,855 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
    string str;
    cin >> str;
    
    int i,j;
    cin >> i >> j;
    swap(str.at(i),str.at(j));
    cout << str << endl;
    
}
0