| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 38576 | Waschbar | 수열 (BOI14_sequence) | C++14 | 16 ms | 2052 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 k;
int a[10000];
bool check(int x, int y) {
if(x == 0) return (x == y);
while(x > 0) {
if(x%10 == y) return 1;
x /= 10;
}
return 0;
}
int main() {
cin >> k;
for(int i = 1; i <= k; i++)
cin >> a[i];
for(int i = 1; i <= 1000; i++) {
bool ind = 1;
for(int j = 1; j <= k; j++){
if(!check(i+j-1,a[j])) ind = 0;
}
if(ind){
cout << i; return 0;
}
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
