답안 #457688

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
457688 2021-08-07T09:49:49 Z jurgis Coins (LMIO19_monetos) C++14
0 / 100
112 ms 2420 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; int 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>>plac[a][b];
                if(a>=n/2){

                    plac[a][b] = 1;
                }else{
                    plac[a][b]= 0;
                }
            }
        }
        for(int a = 0; a< n; a++){
            for(int b =0 ; b< n; b++){
                cout<<plac[a][b]<< " ";
            }
            cout<<"\n";
        }

    }
}

Compilation message

monetos.cpp: In function 'int main()':
monetos.cpp:14:21: warning: unused variable 'c' [-Wunused-variable]
   14 |                 int c;
      |                     ^
monetos.cpp:10:75: warning: unused variable 'cnt' [-Wunused-variable]
   10 |         int n; cin>>n; int plac[n][n]; int k1, k2; cin>>k1>>k2; long long cnt = 0;
      |                                                                           ^~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 204 KB K = 24
2 Incorrect 2 ms 204 KB Expected EOF
3 Incorrect 46 ms 1048 KB Expected EOF
4 Incorrect 62 ms 1268 KB Expected EOF
5 Incorrect 64 ms 1576 KB Expected EOF
6 Incorrect 85 ms 1704 KB Expected EOF
7 Incorrect 85 ms 1788 KB Expected EOF
8 Incorrect 94 ms 1988 KB Expected EOF
9 Incorrect 107 ms 2160 KB Expected EOF
10 Incorrect 112 ms 2420 KB Expected EOF