QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#345378#7962. 前缀和BilkyesWA 1ms3836kbC++17454b2024-03-06 21:10:302024-03-06 21:10:31

Judging History

This is the latest submission verdict.

  • [2024-03-06 21:10:31]
  • Judged
  • Verdict: WA
  • Time: 1ms
  • Memory: 3836kb
  • [2024-03-06 21:10:30]
  • Submitted

answer

#include<bits/stdc++.h>
using namespace std;
#define f first
#define s second
#define pb push_back
#define int long long
typedef long long ll;
typedef pair<int,int> PII;
const int N=2e5+10,M=4e5+10,mod=6666623333;

int T;
int n,l,r;
double q;

void solve()
{
	cin>>n>>q>>l>>r;
	printf("%.6lf",q*2);
}

signed main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0); 
	T=1;
	while(T--)
	{
		solve();
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 0.5 1 2

output:

1.000000

result:

ok found '1.0000000', expected '1.0000000', error '0.0000000'

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3836kb

input:

1 0.529148 1 1

output:

1.058296

result:

wrong answer 1st numbers differ - expected: '0.5291480', found: '1.0582960', error = '0.5291480'