답안 #706570

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
706570 2023-03-07T05:00:05 Z YugiHacker Prosjecni (COCI16_prosjecni) C++14
24 / 120
1 ms 316 KB
#include<bits/stdc++.h>
#define el cout<<"\n"
#define f0(i,n) for(int i=0;i<n;++i)
#define f1(i,n) for(int i=1;i<=n;++i)
#define maxn
using namespace std;

main()
{
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    int n;
    cin >> n;
    if (n%2) f1 (i, n*n)
    {
        cout << i << ' ';
        if (i%n == 0) el;
    }
    else cout << -1;
}

Compilation message

prosjecni.cpp:8:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    8 | main()
      | ^~~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Integer -1 violates the range [0, 1000000000]
2 Correct 1 ms 212 KB Output is correct
3 Incorrect 0 ms 212 KB Integer -1 violates the range [0, 1000000000]
4 Correct 0 ms 316 KB Output is correct
5 Incorrect 0 ms 212 KB Integer -1 violates the range [0, 1000000000]
6 Incorrect 1 ms 212 KB Integer -1 violates the range [0, 1000000000]
7 Incorrect 1 ms 212 KB Integer -1 violates the range [0, 1000000000]
8 Incorrect 1 ms 212 KB Integer -1 violates the range [0, 1000000000]
9 Incorrect 1 ms 212 KB Integer -1 violates the range [0, 1000000000]
10 Incorrect 1 ms 212 KB Integer -1 violates the range [0, 1000000000]