結果
問題 |
No.729 文字swap
|
ユーザー |
![]() |
提出日時 | 2018-09-07 21:20:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 2,170 ms |
コンパイル使用メモリ | 193,728 KB |
最終ジャッジ日時 | 2025-01-06 12:52:36 |
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 1 WA * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; using int64 = long long; int main() { string s; int x, y; cin >> s >> x >> y; swap(s[x - 1], s[y - 1]); cout << s << endl; }