QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#487509#6661. 야유회Rafi22#0 1ms3908kbC++201.2kb2024-07-22 22:48:452024-07-22 22:48:45

Judging History

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

  • [2024-07-22 22:48:45]
  • 评测
  • 测评结果:0
  • 用时:1ms
  • 内存:3908kb
  • [2024-07-22 22:48:45]
  • 提交

answer

#include "workshop.h"
#include <bits/stdc++.h>

using namespace std;

#ifdef DEBUG
auto&operator<<(auto&o,pair<auto,auto>p){return o<<"("<<p.first<<", "<<p.second<<")";}
auto operator<<(auto&o,auto x)->decltype(x.end(),o){o<<"{";int i=0;for(auto e:x)o<<","+!i++<<e;return o<<"}";}
#define debug(X...)cerr<<"["#X"]: ",[](auto...$){((cerr<<$<<"; "),...)<<endl;}(X)
#else
#define debug(...){}
#endif

#define ll long long
#define ld long double
#define endl '\n'
#define st first
#define nd second
#define pb push_back
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
#define FOR(i,l,r) for(int i=(l);i<=(r);i++)
#define ROF(i,r,l) for(int i=(r);i>=(l);i--)
int inf=1000000007;
ll infl=1000000000000000007;
ll mod=1000000007;
ll mod1=998244353;

const int K=41;

void init()
{
	
}

ll los(ll x)
{
	((((x^12345678)/4+617419194)*7+618381)^5151331)%1000000000;
}

int morning(int x,int r)
{
	return los(x)%K;
}

int afternoon(int l,int x,int r) 
{
	if(l==x&&r==x) return (x+1)%K;
	else return x;
}

int evening(int l,int x,int r)
{
	if(l==x&&r==x) return (x+1)%K;
	else if(r==x) 
	{
		if(l==(x-1+K)%K) return (x-2+K)%K;
		else return (x-1+K)%K;
	}
	else return x;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 1ms = 0ms + 1ms
memory: 3760kb,3856kb

input:

2dc2b1d4-8de2-INPUT-bcd3-aa55b691fdb3
1
2
40 40
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
40 40
0 3 1 5 7 9 6 4 2 10 8 23 21 25 27 29 26 24 22 30 28 13 11 15 17 19 16 14 12 20 18 33 31 35 37 39 36 34 32 38

output:

64be09ab-d709-ERROR-82bc-c23f6124dd26
SV33

input:

64be09ab-d709-ERROR-82bc-c23f6124dd26
SV33

output:

64be09ab-d709-ERROR-82bc-c23f6124dd26
SV33

result:

wrong answer SV33

Subtask #2:

score: 0
Wrong Answer

Test #8:

score: 0
Wrong Answer
time: 1ms = 0ms + 1ms
memory: 3672kb,3908kb

input:

2dc2b1d4-8de2-INPUT-bcd3-aa55b691fdb3
2
2
40 40
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
40 40
0 3 1 5 7 9 6 4 2 10 8 23 21 25 27 29 26 24 22 30 28 13 11 15 17 19 16 14 12 20 18 33 31 35 37 39 36 34 32 38

output:

64be09ab-d709-ERROR-82bc-c23f6124dd26
SV33

input:

64be09ab-d709-ERROR-82bc-c23f6124dd26
SV33

output:

64be09ab-d709-ERROR-82bc-c23f6124dd26
SV33

result:

wrong answer SV33