Submission #711700

#TimeUsernameProblemLanguageResultExecution timeMemory
711700scottchouPopcount (COCI19_popcount)C++17
0 / 110
1 ms340 KiB
#include<bits/stdc++.h> using namespace std; int const N = 505; string s[N]; int main(){ ios::sync_with_stdio(0); cin.tie(0); int n, k; cin >> n >> k; for(int i = 0; i < n; i++){ s[i] = "((A&(1<<"; if(i >= 10){ s[i].push_back((char)(i / 10 + '0')); } s[i].push_back((char)(i % 10 + '0')); s[i] = s[i] + "))>>"; if(i >= 10){ s[i].push_back((char)(i / 10 + '0')); } s[i].push_back((char)(i % 10 + '0')); s[i].push_back(')'); } cout << 1 << '\n'; cout << "A="; for(int i = 0; i < n - 1; i++){ cout << '('; } cout << s[0]; for(int i = 1; i < n; i++){ cout << '+'; cout << s[i]; cout << ')'; } cout << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...