結果
問題 |
No.729 文字swap
|
ユーザー |
![]() |
提出日時 | 2020-12-11 22:54:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 201 bytes |
コンパイル時間 | 2,135 ms |
コンパイル使用メモリ | 191,928 KB |
最終ジャッジ日時 | 2025-01-16 22:27:12 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string S; cin>>S; int i,j; cin>>i>>j; char temp; temp=S.at(i); S.at(i)=S.at(j); S.at(j)=temp; cout<<S<<endl; return 0; }