QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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;
}
詳細信息
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: ''