Nu aveti permisiuni pentru a descarca fisierul grader_test11.in
Borderou de evaluare (job #1506866)
Utilizator | David Filestra Filestraffff | Data | 21 octombrie 2015 00:29:05 |
---|---|---|---|
Problema | Coco Chanel | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 100 |
Raport evaluator
Compilare:
user.cpp:3:103: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
std::string s="cocochanel.";std::ifstream f(s+"in");std::ofstream g(s+"out");int n,m,v[(int)1e5];main(){int i,x,m2;f>>n>>m;for(i=0;i<n;++i)f>>v[i];f>>m2;for(i=1;i<m;++i){f>>x;if(x>m2)m2=x;}for(i=0;i<n;++i){if(m2<v[i])g<<0;else{x=log2(m2/v[i])+1;if(x>m)g<<m;else g<<x;}g<<"\n";}}
^
Test | Timp executie | Memorie folosita | Mesaj | Punctaj/test |
---|---|---|---|---|
1 | 0ms | 424kb | OK | 10 |
2 | 0ms | 416kb | OK | 10 |
3 | 0ms | 428kb | OK | 10 |
4 | 0ms | 432kb | OK | 10 |
5 | 128ms | 812kb | OK | 10 |
6 | 120ms | 820kb | OK | 10 |
7 | 124ms | 816kb | OK | 10 |
8 | 116ms | 812kb | OK | 10 |
9 | 116ms | 812kb | OK | 10 |
10 | 104ms | 816kb | OK | 10 |
Punctaj total | 100 |
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !