| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 17877 | Erzhann | 입자 가속기 (IZhO11_collider) | C++98 | 594 ms | 6204 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/*
  /\     /\
  | ).|.( |
  |  >-<  |
  =========
It's AdilkhanKo miaaaaaau      
*/
#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define endl "\n"
#define foreach(it, S) for(__typeof (S.begin()) it = S.begin(); it != S.end(); it++)
#define mp make_pair
#define f first
#define s second 
#define name ""
#define _ ios_base::sync_with_stdio(false);cin.tie(0);
using namespace std;
                                            
const int MaxN = int (2e5) + 256;
const int INF = int(1e9);  
const int mod = (int)(1e9) + 7;
int n, a[MaxN], m, t;
vector<char> v;
int main () { _
	/*#ifdef ONLINE_JUDGE
		freopen (name".in","r",stdin);
		freopen (name".out","w",stdout);
	#else
		freopen (".in","r",stdin);
		freopen (".out","w",stdout);
	#endif*/
	cin >> n >> m;
	string s; cin >> s;
	for(int i = 0; i < s.size(); i++)
		v.pb(s[i]);
	for(int i = 1; i <= m; i++){
		char ch; cin >> ch;
		if(ch == 'a'){
			int x, y; cin >> x >> y;
			char C = v[x - 1];
			v.erase(v.begin() + x - 1);
			v.insert(v.begin() + y - 1, C);
		}else{
			int x; cin >> x;
			cout << v[x - 1] << endl;
		}
	}
return 0;
}                   									
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
