結果
問題 | No.729 文字swap |
ユーザー |
![]() |
提出日時 | 2018-09-07 22:10:54 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 1,789 ms |
コンパイル使用メモリ | 157,532 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 14:38:08 |
合計ジャッジ時間 | 2,385 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include<bits/stdc++.h> #define INF 1000000007 #define LINF 1000000000000000007 using namespace std; typedef long long ll; typedef pair<ll, ll> P; string s; int a,b; int main(){ cin >> s; cin >> a >> b; swap(s[a], s[b]); cout << s << endl; return 0; }