QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#134832 | #5377. $N$ 门问题 | 1kri# | 0 | 0ms | 3960kb | C++14 | 299b | 2023-08-05 09:11:31 | 2024-07-04 01:17:09 |
Judging History
answer
#include <iostream>
#include <cstdio>
#include <cstring>
#define mod 998244353
using namespace std;
int t,a[50005],b[50005];
int n;
int main(){
cin>>t;
for (int i=1;i<=t;i++)scanf("%d%d",&a[i],&b[i]);
n=a[1];
if (n<2)printf("error\n");
else printf("%.6lf\n",1-1.0/n);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 5
Accepted
time: 0ms
memory: 3908kb
input:
1 2 3
output:
0.500000
result:
ok single line: '0.500000'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3908kb
input:
1 3 5
output:
0.666667
result:
ok single line: '0.666667'
Test #3:
score: -5
Wrong Answer
time: 0ms
memory: 3960kb
input:
1 4 5
output:
0.750000
result:
wrong answer 1st lines differ - expected: '0.625000', found: '0.750000'
Subtask #2:
score: 0
Wrong Answer
Test #6:
score: 10
Accepted
time: 0ms
memory: 3904kb
input:
8 1 160005726539569 1 233 0 1 1 2947295521 1 686719856393 1 54289 1 12649337 1 37281334283719577
output:
error
result:
ok single line: 'error'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3908kb
input:
10 2 64 0 2 2 512 2 4 2 32 2 16 2 256 0 1 2 8 2 128
output:
0.500000
result:
ok single line: '0.500000'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
10 3 256 3 16 0 1 3 8 3 512 3 32 3 4 3 128 3 64 1 2
output:
0.666667
result:
ok single line: '0.666667'
Test #9:
score: -10
Wrong Answer
time: 0ms
memory: 3792kb
input:
10 0 2 4 8 0 4 4 256 0 1 4 512 4 32 4 128 4 64 4 16
output:
error
result:
wrong answer 1st lines differ - expected: '0.625000', found: 'error'
Subtask #3:
score: 0
Skipped
Dependency #2:
0%
Subtask #4:
score: 0
Skipped
Dependency #3:
0%
Subtask #5:
score: 0
Skipped
Dependency #1:
0%
Subtask #6:
score: 0
Wrong Answer
Test #57:
score: 0
Wrong Answer
time: 0ms
memory: 3912kb
input:
15 15 17 2 3 5 31 4 5 12 29 38 41 3 11 44 47 16 23 11 19 6 13 3 37 1 2 21 43 5 7
output:
0.933333
result:
wrong answer 1st lines differ - expected: '0.000000', found: '0.933333'
Subtask #7:
score: 0
Skipped
Dependency #1:
0%