QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#838442 | #9925. LR String | kkkgjyismine4 | WA | 0ms | 3660kb | C++20 | 318b | 2024-12-31 11:23:59 | 2024-12-31 11:23:59 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define N 500005
int a[N],n,b[N],c[N],mx;
void solve(){
scanf("%d",&n),mx=0;
for(int i=1;i<=n;++i)scanf("%d",&a[i]),mx=max(mx,a[i]);
for(int i=1;i<=n;++i)if(a[i]==mx)printf("%d ",i);
puts("");
}
int main(){
int T;cin>>T;
while(T--)solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3660kb
input:
2 RRLLRRLL 4 LLLLL LLR LRLR R RLLLLLL 3 LLLLL RL RRL
output:
result:
wrong answer 1st lines differ - expected: 'NO', found: ''