| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 528089 | aris12345678 | Wand (COCI19_wand) | C++14 | 26 ms | 1704 KiB | 
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main() {
    int n, m;
    scanf("%d %d", &n, &m);
    string s = "";
    for(int i = 0; i < n; i++)
        s += '0';
    for(int i = 0; i < m; i++) {
        int a, b;
        scanf("%d %d", &a, &b);
        s[a-1] = '1';
    }
    cout << s << "\n";
    return 0;
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
