| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 312397 | Trickster | 입자 가속기 (IZhO11_collider) | C++98 | 2065 ms | 1436 KiB | 
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
//Just try and the idea will come
#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	int n,m,l,r;
	cin>>n>>m>>s;
	char ch;
	while(m--){
		cin>>ch;
		if(ch=='a'){
			scanf("%d%d",&l,&r);
			l--;
			r--;
			string c="";
			c=s[l];
			s.erase(l, 1);
			s.insert(r,c);
		}
		else{
			scanf("%d", &l);
			l--;
			printf("%c\n", s[l]);
		}
	}
	
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
