#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<set>
#include<unordered_set>
#include<unordered_map>
#include"Joi.h"
using namespace std;
typedef long long ll;
typedef vector<int> vi;
#define chmax(a,b) a=max(a,b)
#define chmin(a,b) a=min(a,b)
#define all(x) x.begin(),x.end()
#define rep(i,n) for(int i=0;i<n;i++)
#define mod 1000000007
#define mad(a,b) a=(a+b)%mod
void Joi(int N,int M,int A[],int B[],ll X,int T){
for(int i=0;i<N;i++){
MessageBoard(i,!!(X&(1LL<<i)));
}
}
//----------------
/*int main(){
}*/
#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<set>
#include<unordered_set>
#include<unordered_map>
#include"Ioi.h"
using namespace std;
typedef long long ll;
typedef vector<int> vi;
#define chmax(a,b) a=max(a,b)
#define chmin(a,b) a=min(a,b)
#define all(x) x.begin(),x.end()
#define rep(i,n) for(int i=0;i<n;i++)
#define mod 1000000007
#define mad(a,b) a=(a+b)%mod
vector<ll> g[10010];
ll vis[10010];
void dfs(ll x,bool fi){
if(fi)vis[x]=0;
else vis[x]=Move(x);
for(auto y:g[x])if(vis[y]==-1){
dfs(y,0);
Move(x);
}
}
ll Ioi(int N,int M,int A[],int B[],int P,int V,int T){
ll R=P/60*60;
while(P>R){
P--;
V=Move(P);
}
ll ans=0;
if(P==0){
rep(i,60){
ans+=(1LL<<i)*V;
P++;
if(0<=P&&P<N)V=Move(P);
}
}
else{
rep(i,60){
ans+=(1LL<<i)*V;
P--;
if(0<=P&&P<N)V=Move(P);
}
}
return ans;
}
/*int main(){
}*/
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
10 ms |
1264 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
30 ms |
2456 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
10 ms |
1260 KB |
Output is correct |
2 |
Correct |
10 ms |
1248 KB |
Output is correct |
3 |
Incorrect |
10 ms |
1108 KB |
Wrong Answer [7] |
4 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
32 ms |
2436 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
31 ms |
2396 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |