結果
| 問題 |
No.729 文字swap
|
| コンテスト | |
| ユーザー |
chocopuu
|
| 提出日時 | 2018-11-10 20:45:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 320 bytes |
| コンパイル時間 | 1,655 ms |
| コンパイル使用メモリ | 166,436 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 00:25:04 |
| 合計ジャッジ時間 | 2,258 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
const int MOD=1000000007;
const int INF=1e18;
signed main(){
cin.tie(0);
ios::sync_with_stdio(false);
std::string s;
std::cin >> s;
int i , j;
std::cin >> i >> j;
swap(s[i],s[j]);
std::cout << s << "\n";
return 0;
}
chocopuu