Submission #457654

#TimeUsernameProblemLanguageResultExecution timeMemory
457654jurgisCoins (LMIO19_monetos)C++14
0 / 100
40 ms372 KiB
#include <iostream> #include <bits/stdc++.h> #define turbo() std::ios_base::sync_with_stdio(false); cin.tie(NULL); using namespace std; int main() { int t; cin>>t; for(int i=0; i<t; i++){ int n; cin>>n; bool plac[n][n]; int k1, k2; cin>>k1>>k2; long long cnt = 0; for(int a=0; a< n; a++){ for(int b=0; b<n; b++){ int c; cin>>c; if(c==1){plac[a][b] = true;}else{ plac[a][b] = false;} if(b>=5 && !plac[a][b]){ cnt++; } } } cout<<cnt; } }
#Verdict Execution timeMemoryGrader output
Fetching results...