Submission #1154599

#TimeUsernameProblemLanguageResultExecution timeMemory
1154599salmonHop (COCI21_hop)C++20
3 / 110
0 ms332 KiB
#include <bits/stdc++.h>
using namespace std;

int N;
int ans[1100][1100];

int main(){

    scanf(" %d",&N);

    for(int i = 0; i < N; i++){
        int h;
        scanf(" %d",&h);
    }

    for(int i = 1; i < N; i++){
        for(int j = 0; j < i; j++){
            printf("%d ",j%3+1);
        }
        printf("\n");
    }

}

Compilation message (stderr)

Main.cpp: In function 'int main()':
Main.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    9 |     scanf(" %d",&N);
      |     ~~~~~^~~~~~~~~~
Main.cpp:13:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   13 |         scanf(" %d",&h);
      |         ~~~~~^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...