QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#838442#9925. LR Stringkkkgjyismine4WA 0ms3660kbC++20318b2024-12-31 11:23:592024-12-31 11:23:59

Judging History

你现在查看的是最新测评结果

  • [2024-12-31 11:23:59]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3660kb
  • [2024-12-31 11:23:59]
  • 提交

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: ''