QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#266729#6530. Programming ContestchitogeWA 0ms3636kbC++20328b2023-11-26 17:09:082023-11-26 17:09:09

Judging History

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

  • [2023-11-26 17:09:09]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3636kb
  • [2023-11-26 17:09:08]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;

int arr[100005];

int main(){
	int tt;cin>>tt;
	while(tt--){
		int l,r;
		cin>>l;
		int n;cin>>n;
		for(int i=0;i<n;i++){
			int x;cin>>x;
			arr[x]=tt;	
		}
		cin>>r;
		int ans=1;
		for(;l<r;l++){
			ans+=arr[l]!=tt;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3636kb

input:

4
2003
1 2020
2023
2003
1 2020
2003
2345
0
3456
3000
4 3001 3003 3004 3008
3007

output:

20
1
1112
1

result:

wrong answer 4th numbers differ - expected: '5', found: '1'