답안 #830523

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
830523 2023-08-19T07:41:10 Z tana Prize (CEOI22_prize) C++14
0 / 100
228 ms 102428 KB
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <vector>
using namespace std;
const int mxn = 2e6 + 10,mxm = 2e6 + 10;
vector<int> pat[2][mxn] = {};
int par[2][mxn] = {},he[2] = {},retva,retbn,retan,le[2] = {},ri[2] = {}
,up[2][25][mxn] = {},ju[2][25][mxn] = {},u[mxn] = {},las[2],ans[2];
int main()
{
    int i,j,n,m,q,t,cn,cm,fn,fm,k;
    scanf("%d",&n);
    scanf("%d",&m);
    scanf("%d",&q);
    scanf("%d",&t);
    for(i=0; i<2; i++)
    {
        for(j=1; j<=n; j++)
        {
            scanf("%d",&par[i][j]);
        }
    }
    for(i=1; i<=m; i++)
    {
        printf("%d",i);
        if(i<m)printf(" ");
        u[i] = 1;
    }
    printf("\n");
    cout.flush();
    for(i=0; i<q; i++)
    {
        printf("? %d %d\n",1,1);
    }
    printf("!\n");
    cout.flush();
    for(i=0; i<q; i++)
    {
        scanf("%d",&cn);
        scanf("%d",&cm);
        scanf("%d",&fn);
        scanf("%d",&fm);
    }
    for(i=0; i<t; i++)
    {
        scanf("%d",&cn);
        scanf("%d",&cm);
    }
    for(i=0; i<t; i++)
    {
        printf("%d %d\n",0,0);
    }
    cout.flush();
}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:13:33: warning: unused variable 'k' [-Wunused-variable]
   13 |     int i,j,n,m,q,t,cn,cm,fn,fm,k;
      |                                 ^
Main.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   14 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
Main.cpp:15:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   15 |     scanf("%d",&m);
      |     ~~~~~^~~~~~~~~
Main.cpp:16:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   16 |     scanf("%d",&q);
      |     ~~~~~^~~~~~~~~
Main.cpp:17:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   17 |     scanf("%d",&t);
      |     ~~~~~^~~~~~~~~
Main.cpp:22:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   22 |             scanf("%d",&par[i][j]);
      |             ~~~~~^~~~~~~~~~~~~~~~~
Main.cpp:41:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   41 |         scanf("%d",&cn);
      |         ~~~~~^~~~~~~~~~
Main.cpp:42:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   42 |         scanf("%d",&cm);
      |         ~~~~~^~~~~~~~~~
Main.cpp:43:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   43 |         scanf("%d",&fn);
      |         ~~~~~^~~~~~~~~~
Main.cpp:44:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   44 |         scanf("%d",&fm);
      |         ~~~~~^~~~~~~~~~
Main.cpp:48:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |         scanf("%d",&cn);
      |         ~~~~~^~~~~~~~~~
Main.cpp:49:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   49 |         scanf("%d",&cm);
      |         ~~~~~^~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Runtime error 151 ms 98432 KB Execution killed with signal 13
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 191 ms 98500 KB Execution killed with signal 13
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 108 ms 98200 KB Execution killed with signal 13
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 186 ms 102188 KB Execution killed with signal 13
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 228 ms 102428 KB Execution killed with signal 13
2 Halted 0 ms 0 KB -