Submission #744010

#TimeUsernameProblemLanguageResultExecution timeMemory
744010jamezzzIzvanzemaljci (COI21_izvanzemaljci)C++17
5 / 100
36 ms916 KiB
#include <bits/stdc++.h> using namespace std; #ifdef DEBUG #define dbg(...) printf(__VA_ARGS__); #else #define dbg(...) #endif #define sf scanf #define pf printf #define fi first #define se second #define pb push_back #define sz(x) (int)x.size() #define all(x) x.begin(),x.end() #define INF 1023456789 typedef long long ll; typedef pair<int,int> ii; #define maxn 300005 int n,k; int main(){ sf("%d%d",&n,&k); if(k==1){ int mnx=INF,mny=INF,mxx=-INF,mxy=-INF; for(int i=0;i<n;++i){ int x,y;sf("%d%d",&x,&y); mnx=min(mnx,x); mxx=max(mxx,x); mny=min(mny,y); mxy=max(mxy,y); } pf("%d %d %d\n",mnx,mny,max(1,max(mxx-mnx,mxy-mny))); } else if(n<=12){ } }

Compilation message (stderr)

izvanzemaljci.cpp: In function 'int main()':
izvanzemaljci.cpp:25:4: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   25 |  sf("%d%d",&n,&k);
      |    ^
izvanzemaljci.cpp:29:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   29 |    int x,y;sf("%d%d",&x,&y);
      |              ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...