# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1029449 | vjudge1 | CATS (NOI14_cats) | C++11 | 1566 ms | 262144 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define F first
#define S second
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
ll X,L,N,t;
int main(){
scanf("%lld",&t);
while(t--){
scanf("%lld %lld %lld",&X,&L,&N);
ll con=X;
vector<pair<ll,ll>> S1(1e6,{0,0});
ll flip=0;
while(con>0){
ll T1=S1.back().F;
ll aux=S1.back().S;
if((flip-aux)%2==1){
T1^=1;
}
S1.pop_back();
//FLIP LAST BINARY BIT OF ALL NUMBERS IN S1
flip++;
if(T1>L){
con--;
if(con==0){
printf("%lld\n",T1);
}
}else{
ll f1=T1+2*N;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |