Submission #223387

#TimeUsernameProblemLanguageResultExecution timeMemory
223387dantoh000Matching (COCI20_matching)C++14
0 / 110
9 ms2816 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(y);
    }
    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...