QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#746625#5486. Metronomet-aswathAC ✓0ms3972kbC++141.1kb2024-11-14 15:08:372024-11-14 15:08:42

Judging History

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

  • [2024-11-14 15:08:42]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3972kb
  • [2024-11-14 15:08:37]
  • 提交

answer

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> 
#include <ext/pb_ds/tree_policy.hpp>

using namespace __gnu_pbds;
using namespace std;

#ifdef LOCAL
#include "debug.h"
#else
#define deb(x...) 42
#endif

#define fast_io ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define ll long long
#define F first
#define S second
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()

typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;

#define MOD 1000000007

void solve() {
    double n;
    cin>>n;
    cout<<n/4<<endl;

}


int main() {
  fast_io;
#ifdef LOCAL
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
  freopen("output.txt", "w", stderr);
#endif
  ll t = 1;
  // cin >> t;
  for(ll i = 0; i < t; i++) {
#ifdef LOCAL
    cout << "CASE " << i + 1 << ":\n";
#endif
    solve();
  }
#ifdef LOCAL
  cout << endl << "Finished in " << clock() * 1.0 / CLOCKS_PER_SEC << " sec\n\n";
#endif
  return 0;
}

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3844kb

input:

16

output:

4

result:

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

Test #2:

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

input:

99

output:

24.75

result:

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

Test #3:

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

input:

100000

output:

25000

result:

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

Test #4:

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

input:

99999

output:

24999.8

result:

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

Test #5:

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

input:

99998

output:

24999.5

result:

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

Test #6:

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

input:

99997

output:

24999.2

result:

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

Test #7:

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

input:

1

output:

0.25

result:

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

Test #8:

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

input:

2

output:

0.5

result:

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

Test #9:

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

input:

3

output:

0.75

result:

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

Test #10:

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

input:

4

output:

1

result:

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

Test #11:

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

input:

49308

output:

12327

result:

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

Test #12:

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

input:

27829

output:

6957.25

result:

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

Test #13:

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

input:

68848

output:

17212

result:

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

Test #14:

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

input:

76026

output:

19006.5

result:

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

Test #15:

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

input:

20820

output:

5205

result:

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

Test #16:

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

input:

65430

output:

16357.5

result:

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

Test #17:

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

input:

17693

output:

4423.25

result:

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

Test #18:

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

input:

36041

output:

9010.25

result:

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

Test #19:

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

input:

69486

output:

17371.5

result:

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

Test #20:

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

input:

63762

output:

15940.5

result:

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