QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#245516#5486. Metronomemomen159#AC ✓1ms3784kbC++14802b2023-11-09 23:42:192023-11-09 23:42:19

Judging History

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

  • [2023-11-09 23:42:19]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3784kb
  • [2023-11-09 23:42:19]
  • 提交

answer

#include<bits/stdc++.h>

using namespace std;
#define ll long long
#define momen ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define endl "\n"
#define ld long double
#define fp(n) for(int i=0;i<n;i++)
#define fp1(n) for(int i=1;i<=n;i++)
#define all(v) v.begin() , v.end()
const int mod = 1e9 + 7, N = 1e6 + 5, M = 8e6 + 5;
const ll LG = 20, inf = 1e9 + 6;


int dx[] = {0, 0, 1, -1};
int dy[] = {1, -1, 0, 0};


void solve(int z) {
    double  n ;
    cin>>n ;
    cout<<n/4 ;
}


int main() {
    momen
    int t = 1;
#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif
//    cin >> t;

    for (int i = 1; i <= t; ++i) {
        //cout<<"Case #"<<i<<": ";
        solve(t);
    }

    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3660kb

input:

16

output:

4

result:

ok found '4.00000', expected '4.00000', error '0.00000'

Test #2:

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

input:

99

output:

24.75

result:

ok found '24.75000', expected '24.75000', error '0.00000'

Test #3:

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

input:

100000

output:

25000

result:

ok found '25000.00000', expected '25000.00000', error '0.00000'

Test #4:

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

input:

99999

output:

24999.8

result:

ok found '24999.80000', expected '24999.75000', error '0.00000'

Test #5:

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

input:

99998

output:

24999.5

result:

ok found '24999.50000', expected '24999.50000', error '0.00000'

Test #6:

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

input:

99997

output:

24999.2

result:

ok found '24999.20000', expected '24999.25000', error '0.00000'

Test #7:

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

input:

1

output:

0.25

result:

ok found '0.25000', expected '0.25000', error '0.00000'

Test #8:

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

input:

2

output:

0.5

result:

ok found '0.50000', expected '0.50000', error '0.00000'

Test #9:

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

input:

3

output:

0.75

result:

ok found '0.75000', expected '0.75000', error '0.00000'

Test #10:

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

input:

4

output:

1

result:

ok found '1.00000', expected '1.00000', error '0.00000'

Test #11:

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

input:

49308

output:

12327

result:

ok found '12327.00000', expected '12327.00000', error '0.00000'

Test #12:

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

input:

27829

output:

6957.25

result:

ok found '6957.25000', expected '6957.25000', error '0.00000'

Test #13:

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

input:

68848

output:

17212

result:

ok found '17212.00000', expected '17212.00000', error '0.00000'

Test #14:

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

input:

76026

output:

19006.5

result:

ok found '19006.50000', expected '19006.50000', error '0.00000'

Test #15:

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

input:

20820

output:

5205

result:

ok found '5205.00000', expected '5205.00000', error '0.00000'

Test #16:

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

input:

65430

output:

16357.5

result:

ok found '16357.50000', expected '16357.50000', error '0.00000'

Test #17:

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

input:

17693

output:

4423.25

result:

ok found '4423.25000', expected '4423.25000', error '0.00000'

Test #18:

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

input:

36041

output:

9010.25

result:

ok found '9010.25000', expected '9010.25000', error '0.00000'

Test #19:

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

input:

69486

output:

17371.5

result:

ok found '17371.50000', expected '17371.50000', error '0.00000'

Test #20:

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

input:

63762

output:

15940.5

result:

ok found '15940.50000', expected '15940.50000', error '0.00000'