# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
398958 | almothana05 | Sequence (BOI14_sequence) | C++14 | 3 ms | 1800 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<iostream>
#include<vector>
#include<set>
#include<algorithm>
using namespace std;
vector<vector<int> >re;
vector<int>num;
int main(){
int menge , numm , nummer = 0 , erg = 1000000000;
re.push_back(vector<int>(10 , 0));
re[0][0] = 1;
for(int i = 1 ; i < 10000 ;i++){
numm = i;
re.push_back(vector<int>(10 , 0));
while(numm > 0){
re[i][numm % 10]++;
if(numm == 0){
break;
}
numm/=10;
}
}
cin >> menge;
for(int i = 0 ; i < menge ; i++){
cin >> numm ;
num.push_back(numm);
}
for(int i = 0 ; i < re.size() ; i++){
Compilation message (stderr)
# | 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... |