| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 312390 | Trickster | Collider (IZhO11_collider) | C++17 | 2089 ms | 1436 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
//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]);
}
}
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
