結果
問題 | No.729 文字swap |
ユーザー |
![]() |
提出日時 | 2018-09-27 22:29:19 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 513 bytes |
コンパイル時間 | 595 ms |
コンパイル使用メモリ | 73,200 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 04:36:56 |
合計ジャッジ時間 | 1,188 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
//inlclude前用define#define _USE_MATH_DEFINES//include#include<iostream>#include<string>#include<algorithm>#include<vector>#include<cmath>#include<cstdio>#include<type_traits>#include<numeric>#include<limits>#include<iomanip>using namespace std;//typedeftypedef vector<int> VI;typedef vector<string> VS;typedef vector<char> VC;//grobal変数int main() {string s;int i,j;cin >> s;cin >> i >> j;char tmp;tmp = s[i];s[i] = s[j];s[j] = tmp;cout << s << endl;return 0;}