답안 #457652

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
457652 2021-08-07T09:21:20 Z jurgis Coins (LMIO19_monetos) C++14
0 / 100
25 ms 552 KB
#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; int 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;
    }
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Integer 25 violates the range [0, 1]
2 Incorrect 1 ms 204 KB Integer 11760 violates the range [0, 1]
3 Incorrect 18 ms 548 KB Expected int32, but "440128850088500" found
4 Incorrect 20 ms 552 KB Integer 44412000 violates the range [0, 1]
5 Incorrect 20 ms 544 KB Expected integer, but "4397188500885008850088500" found
6 Incorrect 21 ms 548 KB Expected integer, but "441818850088500885008850088500" found
7 Incorrect 21 ms 548 KB Expected int32, but "44140000000" found
8 Incorrect 22 ms 548 KB Expected integer, but "4445388500885008850088500885008850088500" found
9 Incorrect 23 ms 484 KB Expected integer, but "441058850088500885008850088500885008850088500" found
10 Incorrect 25 ms 460 KB Expected int32, but "44055000000000" found