QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#196254#6889. PSORoyo#WA 35ms3816kbC++20329b2023-10-01 14:50:212023-10-01 14:50:21

Judging History

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

  • [2023-10-01 14:50:21]
  • 评测
  • 测评结果:WA
  • 用时:35ms
  • 内存:3816kb
  • [2023-10-01 14:50:21]
  • 提交

answer

#include<bits/stdc++.h>

using namespace std;

void solve()
{
	int n;
	scanf("%d", &n);
	if (n == 2)
	{
		printf("%.9f %.9f\n", 0.5, 1.0);
		return;
	}
	double a = 2, b = (1.0 * (n - 1) * 2) / n;
	printf("%.9f %.9f\n", b, a);
}

int main()
{
	 int T;
	 scanf("%d", &T);
	 while (T--) solve();
	 return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 35ms
memory: 3816kb

input:

100000
1000000000
316282544
8750007
736358249
599449905
958797884
57807155
190721739
49078691
54519372
197507191
189770390
669595503
625443707
681627652
859163225
633903516
942163948
162318847
907559014
367667214
702553026
250779315
583592021
539773972
398355366
716540172
8874879
281470171
909896004...

output:

1.999999998 2.000000000
1.999999994 2.000000000
1.999999771 2.000000000
1.999999997 2.000000000
1.999999997 2.000000000
1.999999998 2.000000000
1.999999965 2.000000000
1.999999990 2.000000000
1.999999959 2.000000000
1.999999963 2.000000000
1.999999990 2.000000000
1.999999989 2.000000000
1.999999997 ...

result:

wrong answer 100000th lines differ - expected: '1.000000000 1.000000000', found: '0.500000000 1.000000000'