# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
912417 | 2024-01-19T12:25:01 Z | Hggf | Binary Subsequences (info1cup17_binary) | C++17 | 900 ms | 19196 KB |
#pragma GCC optimize("O3") #pragma GCC target("avx2") #include <bits/stdc++.h> #define int long long #define endl "\n" using namespace std; string yn(bool ans){ return (ans?"YES":"NO"); } void gogo(){ int n; cin>>n; int u=n+2; int cnt=0; for(int j=1;j<=u;j++){ if(__gcd(j,u)==1){ cnt++; } } cout<<cnt<<endl; for(int i=1;i<=n;i++){ cout<<0<<' '; } cout<<endl; } main(){ ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); long long t=1; cin>>t; while(t--){ gogo(); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 166 ms | 4392 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 54 ms | 1364 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1039 ms | 19196 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |