QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#89792#5255. Greedy DrawersCCSU_LRFWA 2ms3340kbC++20359b2023-03-21 11:55:212023-03-21 11:55:21

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-03-21 11:55:21]
  • 评测
  • 测评结果:WA
  • 用时:2ms
  • 内存:3340kb
  • [2023-03-21 11:55:21]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
const int N = 1e6+7;
typedef long long ll;
int main(){
ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	int n;
	cin>>n;
	int m = 1000;
	for(int i = 1;i<=n;i++){
		cout<<i<<" "<<m<<'\n';
		m--;
	}
	cout<<'\n';
	 m = 1000;
	for(int i = 1;i<=n;i++){
		cout<<m<<" "<<m<<'\n';
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 2ms
memory: 3340kb

input:

150

output:

1 1000
2 999
3 998
4 997
5 996
6 995
7 994
8 993
9 992
10 991
11 990
12 989
13 988
14 987
15 986
16 985
17 984
18 983
19 982
20 981
21 980
22 979
23 978
24 977
25 976
26 975
27 974
28 973
29 972
30 971
31 970
32 969
33 968
34 967
35 966
36 965
37 964
38 963
39 962
40 961
41 960
42 959
43 958
44 957
...

result:

wrong answer Janko passed your test!