Submission #223390

#TimeUsernameProblemLanguageResultExecution timeMemory
223390dantoh000Matching (COCI20_matching)C++14
5 / 110
11 ms2944 KiB
#include <bits/stdc++.h> using namespace std; vector<int> ans[100005]; int main(){ int n; scanf("%d",&n); for (int i = 0; i < n; i++ ){ int x,y; scanf("%d%d",&x,&y); ans[x].push_back(i+1); } printf("DA\n"); for (int i = 0; i <= 100000; i++){ for (auto x : ans[i]) printf("%d ",x); printf("\n"); } }

Compilation message (stderr)

matching.cpp: In function 'int main()':
matching.cpp:6:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
matching.cpp:9:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%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...