이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Anna.h"
#include <utility>
#include <bits/stdc++.h>
using namespace std;
namespace {
int variable_example = 0;
}
#define REP(i,n) for(int i=0;i<n;i++)
#define pb push_back
int Declare() {
return 180;
}
std::pair<std::vector<int>, std::vector<int> > Anna(long long A) {
vector<int> a,b;
REP(i,90) a.pb(0),a.pb(1);
REP(i,60){
bool bb=(A&(1LL<<i));
REP(j,3) b.pb(bb);
}
return {a,b};
}
#include "Bruno.h"
#include <utility>
#include <bits/stdc++.h>
using namespace std;
namespace {
int variable_example = 0;
}
#define REP(i,n) for(int i=0;i<n;i++)
#define ll long long
long long Bruno(std::vector<int> u) {
int cur=0;
ll pw=1,ans=0;
REP(i,360){
if(u[i]==0) ++cur;
else --cur;
if(cur==3){
pw*=2,cur-=3;
}
else if(cur==-2){
ans+=pw;
pw*=2;
cur+=3;
}
}
return ans;
}
컴파일 시 표준 에러 (stderr) 메시지
Anna.cpp:7:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
7 | int variable_example = 0;
| ^~~~~~~~~~~~~~~~
Bruno.cpp:7:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
7 | int variable_example = 0;
| ^~~~~~~~~~~~~~~~
# | 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... |