답안 #336422

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
336422 2020-12-15T10:02:00 Z beksultan04 "The Lyuboyn" code (IZhO19_lyuboyn) C++14
3 / 100
1 ms 384 KB
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define pii pair<int,int>
#define OK puts("OK");
#define fr first
#define sc second
#define ret return
#define scan1(a) scanf("%lld",&a);
#define scan2(a,b) scanf("%lld %lld",&a, &b);
#define scan3(a,b,c) scanf("%lld %lld %lld",&a,&b,&c);
#define all(s) s.begin(),s.end()
#define pb push_back
#define sz(v) (int)v.size()
#define endi puts("");
const int N = 5e5+12,INF=1e9+7;
int q[N];
main(){
    int n,k,t,i,j;
    scan3(n,k,t)
    if (k%2==0){
        cout <<-1;
        ret 0;
    }
    {

cout<<"0000\n";
cout<<"0111\n";
cout<<"0001\n";
cout<<"1100\n";
cout<<"1011\n";
cout<<"0101\n";
cout<<"1000\n";
cout<<"0011\n";
cout<<"1110\n";
cout<<"1001\n";
cout<<"0010\n";
cout<<"1111\n";
cout<<"0100\n";
cout<<"1010\n";
cout<<"1101\n";

    }
}






Compilation message

lyuboyn.cpp:18:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   18 | main(){
      |      ^
lyuboyn.cpp: In function 'int main()':
lyuboyn.cpp:19:15: warning: unused variable 'i' [-Wunused-variable]
   19 |     int n,k,t,i,j;
      |               ^
lyuboyn.cpp:19:17: warning: unused variable 'j' [-Wunused-variable]
   19 |     int n,k,t,i,j;
      |                 ^
lyuboyn.cpp:11:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 | #define scan3(a,b,c) scanf("%lld %lld %lld",&a,&b,&c);
      |                      ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
lyuboyn.cpp:20:5: note: in expansion of macro 'scan3'
   20 |     scan3(n,k,t)
      |     ^~~~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 364 KB Expected integer, but "0000" found
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 364 KB Expected integer, but "0000" found
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 256 KB Ok
2 Correct 1 ms 256 KB Ok
3 Correct 1 ms 384 KB Ok
4 Correct 1 ms 364 KB Ok
5 Correct 1 ms 364 KB Ok
6 Correct 1 ms 364 KB Ok
7 Correct 1 ms 364 KB Ok
8 Correct 1 ms 364 KB Ok
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 364 KB Expected integer, but "0000" found
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 364 KB Expected integer, but "0000" found
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 384 KB Expected integer, but "0000" found
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 364 KB Expected integer, but "0000" found
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 364 KB Expected integer, but "0000" found
2 Halted 0 ms 0 KB -