QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#54917#2958. Bettingabdelrahman001#AC ✓2ms3932kbC++516b2022-10-11 17:03:102022-10-11 17:03:13

Judging History

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

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

answer

#pragma GCC optimize ("O3")
#pragma GCC optimize ("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
using namespace std;
const int N = 1e3 + 5;
int main() {
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    int n;
    cin >> n;
    cout << fixed << setprecision(9);
    cout << 1 + (ld)(100 - n) / n << '\n' ;
    cout << 1 + (ld)n / (100 - n) << '\n';
    return 0;
}


Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3720kb

input:

80

output:

1.250000000
5.000000000

result:

ok 2 numbers

Test #2:

score: 0
Accepted
time: 2ms
memory: 3704kb

input:

15

output:

6.666666667
1.176470588

result:

ok 2 numbers

Test #3:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

1

output:

100.000000000
1.010101010

result:

ok 2 numbers

Test #4:

score: 0
Accepted
time: 2ms
memory: 3924kb

input:

2

output:

50.000000000
1.020408163

result:

ok 2 numbers

Test #5:

score: 0
Accepted
time: 2ms
memory: 3700kb

input:

3

output:

33.333333333
1.030927835

result:

ok 2 numbers

Test #6:

score: 0
Accepted
time: 2ms
memory: 3708kb

input:

4

output:

25.000000000
1.041666667

result:

ok 2 numbers

Test #7:

score: 0
Accepted
time: 2ms
memory: 3652kb

input:

5

output:

20.000000000
1.052631579

result:

ok 2 numbers

Test #8:

score: 0
Accepted
time: 0ms
memory: 3856kb

input:

6

output:

16.666666667
1.063829787

result:

ok 2 numbers

Test #9:

score: 0
Accepted
time: 2ms
memory: 3784kb

input:

7

output:

14.285714286
1.075268817

result:

ok 2 numbers

Test #10:

score: 0
Accepted
time: 2ms
memory: 3860kb

input:

8

output:

12.500000000
1.086956522

result:

ok 2 numbers

Test #11:

score: 0
Accepted
time: 0ms
memory: 3720kb

input:

9

output:

11.111111111
1.098901099

result:

ok 2 numbers

Test #12:

score: 0
Accepted
time: 0ms
memory: 3748kb

input:

10

output:

10.000000000
1.111111111

result:

ok 2 numbers

Test #13:

score: 0
Accepted
time: 1ms
memory: 3716kb

input:

11

output:

9.090909091
1.123595506

result:

ok 2 numbers

Test #14:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

12

output:

8.333333333
1.136363636

result:

ok 2 numbers

Test #15:

score: 0
Accepted
time: 2ms
memory: 3732kb

input:

13

output:

7.692307692
1.149425287

result:

ok 2 numbers

Test #16:

score: 0
Accepted
time: 0ms
memory: 3644kb

input:

14

output:

7.142857143
1.162790698

result:

ok 2 numbers

Test #17:

score: 0
Accepted
time: 2ms
memory: 3932kb

input:

16

output:

6.250000000
1.190476190

result:

ok 2 numbers

Test #18:

score: 0
Accepted
time: 2ms
memory: 3772kb

input:

17

output:

5.882352941
1.204819277

result:

ok 2 numbers

Test #19:

score: 0
Accepted
time: 2ms
memory: 3644kb

input:

18

output:

5.555555556
1.219512195

result:

ok 2 numbers

Test #20:

score: 0
Accepted
time: 0ms
memory: 3716kb

input:

19

output:

5.263157895
1.234567901

result:

ok 2 numbers

Test #21:

score: 0
Accepted
time: 2ms
memory: 3708kb

input:

20

output:

5.000000000
1.250000000

result:

ok 2 numbers

Test #22:

score: 0
Accepted
time: 2ms
memory: 3896kb

input:

21

output:

4.761904762
1.265822785

result:

ok 2 numbers

Test #23:

score: 0
Accepted
time: 2ms
memory: 3696kb

input:

22

output:

4.545454545
1.282051282

result:

ok 2 numbers

Test #24:

score: 0
Accepted
time: 2ms
memory: 3776kb

input:

23

output:

4.347826087
1.298701299

result:

ok 2 numbers

Test #25:

score: 0
Accepted
time: 2ms
memory: 3788kb

input:

24

output:

4.166666667
1.315789474

result:

ok 2 numbers

Test #26:

score: 0
Accepted
time: 2ms
memory: 3876kb

input:

25

output:

4.000000000
1.333333333

result:

ok 2 numbers

Test #27:

score: 0
Accepted
time: 0ms
memory: 3928kb

input:

26

output:

3.846153846
1.351351351

result:

ok 2 numbers

Test #28:

score: 0
Accepted
time: 2ms
memory: 3720kb

input:

27

output:

3.703703704
1.369863014

result:

ok 2 numbers

Test #29:

score: 0
Accepted
time: 2ms
memory: 3768kb

input:

28

output:

3.571428571
1.388888889

result:

ok 2 numbers

Test #30:

score: 0
Accepted
time: 2ms
memory: 3760kb

input:

29

output:

3.448275862
1.408450704

result:

ok 2 numbers

Test #31:

score: 0
Accepted
time: 2ms
memory: 3852kb

input:

30

output:

3.333333333
1.428571429

result:

ok 2 numbers

Test #32:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

31

output:

3.225806452
1.449275362

result:

ok 2 numbers

Test #33:

score: 0
Accepted
time: 2ms
memory: 3764kb

input:

32

output:

3.125000000
1.470588235

result:

ok 2 numbers

Test #34:

score: 0
Accepted
time: 2ms
memory: 3876kb

input:

33

output:

3.030303030
1.492537313

result:

ok 2 numbers

Test #35:

score: 0
Accepted
time: 2ms
memory: 3748kb

input:

34

output:

2.941176471
1.515151515

result:

ok 2 numbers

Test #36:

score: 0
Accepted
time: 2ms
memory: 3720kb

input:

35

output:

2.857142857
1.538461538

result:

ok 2 numbers

Test #37:

score: 0
Accepted
time: 0ms
memory: 3696kb

input:

36

output:

2.777777778
1.562500000

result:

ok 2 numbers

Test #38:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

37

output:

2.702702703
1.587301587

result:

ok 2 numbers

Test #39:

score: 0
Accepted
time: 2ms
memory: 3880kb

input:

38

output:

2.631578947
1.612903226

result:

ok 2 numbers

Test #40:

score: 0
Accepted
time: 2ms
memory: 3748kb

input:

39

output:

2.564102564
1.639344262

result:

ok 2 numbers

Test #41:

score: 0
Accepted
time: 1ms
memory: 3744kb

input:

40

output:

2.500000000
1.666666667

result:

ok 2 numbers

Test #42:

score: 0
Accepted
time: 2ms
memory: 3648kb

input:

41

output:

2.439024390
1.694915254

result:

ok 2 numbers

Test #43:

score: 0
Accepted
time: 2ms
memory: 3924kb

input:

42

output:

2.380952381
1.724137931

result:

ok 2 numbers

Test #44:

score: 0
Accepted
time: 2ms
memory: 3784kb

input:

43

output:

2.325581395
1.754385965

result:

ok 2 numbers

Test #45:

score: 0
Accepted
time: 0ms
memory: 3852kb

input:

44

output:

2.272727273
1.785714286

result:

ok 2 numbers

Test #46:

score: 0
Accepted
time: 2ms
memory: 3788kb

input:

45

output:

2.222222222
1.818181818

result:

ok 2 numbers

Test #47:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

46

output:

2.173913043
1.851851852

result:

ok 2 numbers

Test #48:

score: 0
Accepted
time: 2ms
memory: 3696kb

input:

47

output:

2.127659574
1.886792453

result:

ok 2 numbers

Test #49:

score: 0
Accepted
time: 2ms
memory: 3644kb

input:

48

output:

2.083333333
1.923076923

result:

ok 2 numbers

Test #50:

score: 0
Accepted
time: 2ms
memory: 3700kb

input:

49

output:

2.040816327
1.960784314

result:

ok 2 numbers

Test #51:

score: 0
Accepted
time: 2ms
memory: 3728kb

input:

50

output:

2.000000000
2.000000000

result:

ok 2 numbers

Test #52:

score: 0
Accepted
time: 2ms
memory: 3748kb

input:

51

output:

1.960784314
2.040816327

result:

ok 2 numbers

Test #53:

score: 0
Accepted
time: 0ms
memory: 3732kb

input:

52

output:

1.923076923
2.083333333

result:

ok 2 numbers

Test #54:

score: 0
Accepted
time: 2ms
memory: 3776kb

input:

53

output:

1.886792453
2.127659574

result:

ok 2 numbers

Test #55:

score: 0
Accepted
time: 2ms
memory: 3760kb

input:

54

output:

1.851851852
2.173913043

result:

ok 2 numbers

Test #56:

score: 0
Accepted
time: 2ms
memory: 3788kb

input:

55

output:

1.818181818
2.222222222

result:

ok 2 numbers

Test #57:

score: 0
Accepted
time: 2ms
memory: 3720kb

input:

56

output:

1.785714286
2.272727273

result:

ok 2 numbers

Test #58:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

57

output:

1.754385965
2.325581395

result:

ok 2 numbers

Test #59:

score: 0
Accepted
time: 2ms
memory: 3696kb

input:

58

output:

1.724137931
2.380952381

result:

ok 2 numbers

Test #60:

score: 0
Accepted
time: 1ms
memory: 3764kb

input:

59

output:

1.694915254
2.439024390

result:

ok 2 numbers

Test #61:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

60

output:

1.666666667
2.500000000

result:

ok 2 numbers

Test #62:

score: 0
Accepted
time: 2ms
memory: 3748kb

input:

61

output:

1.639344262
2.564102564

result:

ok 2 numbers

Test #63:

score: 0
Accepted
time: 2ms
memory: 3648kb

input:

62

output:

1.612903226
2.631578947

result:

ok 2 numbers

Test #64:

score: 0
Accepted
time: 2ms
memory: 3648kb

input:

63

output:

1.587301587
2.702702703

result:

ok 2 numbers

Test #65:

score: 0
Accepted
time: 2ms
memory: 3756kb

input:

64

output:

1.562500000
2.777777778

result:

ok 2 numbers

Test #66:

score: 0
Accepted
time: 2ms
memory: 3732kb

input:

65

output:

1.538461538
2.857142857

result:

ok 2 numbers

Test #67:

score: 0
Accepted
time: 2ms
memory: 3928kb

input:

66

output:

1.515151515
2.941176471

result:

ok 2 numbers

Test #68:

score: 0
Accepted
time: 2ms
memory: 3880kb

input:

67

output:

1.492537313
3.030303030

result:

ok 2 numbers

Test #69:

score: 0
Accepted
time: 2ms
memory: 3732kb

input:

68

output:

1.470588235
3.125000000

result:

ok 2 numbers

Test #70:

score: 0
Accepted
time: 1ms
memory: 3776kb

input:

69

output:

1.449275362
3.225806452

result:

ok 2 numbers

Test #71:

score: 0
Accepted
time: 2ms
memory: 3784kb

input:

70

output:

1.428571429
3.333333333

result:

ok 2 numbers

Test #72:

score: 0
Accepted
time: 0ms
memory: 3860kb

input:

71

output:

1.408450704
3.448275862

result:

ok 2 numbers

Test #73:

score: 0
Accepted
time: 0ms
memory: 3716kb

input:

72

output:

1.388888889
3.571428571

result:

ok 2 numbers

Test #74:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

73

output:

1.369863014
3.703703704

result:

ok 2 numbers

Test #75:

score: 0
Accepted
time: 2ms
memory: 3700kb

input:

74

output:

1.351351351
3.846153846

result:

ok 2 numbers

Test #76:

score: 0
Accepted
time: 2ms
memory: 3764kb

input:

75

output:

1.333333333
4.000000000

result:

ok 2 numbers

Test #77:

score: 0
Accepted
time: 2ms
memory: 3880kb

input:

76

output:

1.315789474
4.166666667

result:

ok 2 numbers

Test #78:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

77

output:

1.298701299
4.347826087

result:

ok 2 numbers

Test #79:

score: 0
Accepted
time: 0ms
memory: 3784kb

input:

78

output:

1.282051282
4.545454545

result:

ok 2 numbers

Test #80:

score: 0
Accepted
time: 2ms
memory: 3776kb

input:

79

output:

1.265822785
4.761904762

result:

ok 2 numbers

Test #81:

score: 0
Accepted
time: 2ms
memory: 3744kb

input:

81

output:

1.234567901
5.263157895

result:

ok 2 numbers

Test #82:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

82

output:

1.219512195
5.555555556

result:

ok 2 numbers

Test #83:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

83

output:

1.204819277
5.882352941

result:

ok 2 numbers

Test #84:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

84

output:

1.190476190
6.250000000

result:

ok 2 numbers

Test #85:

score: 0
Accepted
time: 2ms
memory: 3880kb

input:

85

output:

1.176470588
6.666666667

result:

ok 2 numbers

Test #86:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

86

output:

1.162790698
7.142857143

result:

ok 2 numbers

Test #87:

score: 0
Accepted
time: 2ms
memory: 3928kb

input:

87

output:

1.149425287
7.692307692

result:

ok 2 numbers

Test #88:

score: 0
Accepted
time: 2ms
memory: 3768kb

input:

88

output:

1.136363636
8.333333333

result:

ok 2 numbers

Test #89:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

89

output:

1.123595506
9.090909091

result:

ok 2 numbers

Test #90:

score: 0
Accepted
time: 0ms
memory: 3720kb

input:

90

output:

1.111111111
10.000000000

result:

ok 2 numbers

Test #91:

score: 0
Accepted
time: 2ms
memory: 3924kb

input:

91

output:

1.098901099
11.111111111

result:

ok 2 numbers

Test #92:

score: 0
Accepted
time: 2ms
memory: 3700kb

input:

92

output:

1.086956522
12.500000000

result:

ok 2 numbers

Test #93:

score: 0
Accepted
time: 2ms
memory: 3764kb

input:

93

output:

1.075268817
14.285714286

result:

ok 2 numbers

Test #94:

score: 0
Accepted
time: 1ms
memory: 3704kb

input:

94

output:

1.063829787
16.666666667

result:

ok 2 numbers

Test #95:

score: 0
Accepted
time: 2ms
memory: 3924kb

input:

95

output:

1.052631579
20.000000000

result:

ok 2 numbers

Test #96:

score: 0
Accepted
time: 1ms
memory: 3696kb

input:

96

output:

1.041666667
25.000000000

result:

ok 2 numbers

Test #97:

score: 0
Accepted
time: 2ms
memory: 3856kb

input:

97

output:

1.030927835
33.333333333

result:

ok 2 numbers

Test #98:

score: 0
Accepted
time: 1ms
memory: 3644kb

input:

98

output:

1.020408163
50.000000000

result:

ok 2 numbers

Test #99:

score: 0
Accepted
time: 0ms
memory: 3716kb

input:

99

output:

1.010101010
100.000000000

result:

ok 2 numbers