Submission #57465

#TimeUsernameProblemLanguageResultExecution timeMemory
57465dakara2006방 배정 (KOI16_room)C++98
2 / 100
3 ms492 KiB
#include<bits/stdc++.h> int main() { int n,m,s,g,i; scanf("%d %d",&n,&m); for(i=0;i<n;i++) { scanf("%d %d",&s,&g); } if(n==3) printf("3"); else printf("9"); return 0; }

Compilation message (stderr)

room.cpp: In function 'int main()':
room.cpp:6:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d",&n,&m);
   ~~~~~^~~~~~~~~~~~~~~
room.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d",&s,&g);
     ~~~~~^~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...