結果
問題 |
No.729 文字swap
|
ユーザー |
![]() |
提出日時 | 2018-09-10 14:15:22 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 191 bytes |
コンパイル時間 | 504 ms |
コンパイル使用メモリ | 56,088 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 14:08:42 |
合計ジャッジ時間 | 1,393 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include<iostream> #include<string> int main() { int b = 0; int d = 0; char c; std::string a; std::cin >> a >> b >> d; c = a[b]; a[b] = a[d]; a[d] = c; std:: cout << a; return 0; }