제출 #637784

#제출 시각아이디문제언어결과실행 시간메모리
637784victor_gaoBroken Device 2 (JOI22_device2)C++17
0 / 100
48 ms5848 KiB
#include "Anna.h" #include <utility> #include <vector> namespace { int variable_example = 0; } int Declare() { return 2000; } std::pair<std::vector<int>, std::vector<int> > Anna(long long A) { std::vector<int> X = {}; std::vector<int> Y = {}; for (int i=63;i>=0;i--){ if (A&(1LL<<i)){ for (int j=1;j<=i;j++){ if (X.size()>Y.size()) Y.push_back(1); else X.push_back(1); } for (int j=1;j<=70;j++){ if (X.size()>Y.size()) Y.push_back(0); else X.push_back(0); } } } if (X.size()>Y.size()) Y.push_back(0); else if (X.size()<Y.size()) X.push_back(0); return make_pair(X, Y); }
#include "Bruno.h" #include <utility> #include <vector> namespace { int variable_example = 0; } long long Bruno(std::vector<int> u) { int ans=0,cnt1=0,cnt0=0; for (int i:u){ if (i==1){ cnt1++; cnt0=0; } else { cnt0++; if (cnt0==40){ ans+=(1LL<<cnt1); cnt1=0; cnt0=0; } } } 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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...