Pagini recente » Borderou de evaluare (job #2543719) | Borderou de evaluare (job #2758959) | Borderou de evaluare (job #2356020) | Borderou de evaluare (job #987110) | Borderou de evaluare (job #2739789)
Borderou de evaluare (job #2739789)
Raport evaluator
Compilare:
main.cpp:3:119: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
using namespace std;ifstream f("reteta2.in");ofstream g("reteta2.out");char s[1002],*c,*p;int t;map<string,int>h;main(){f.getline(s,1002);c=q(s," ()");while(c){if(*c>'/'&&*c<':')t+=atoi(c);else{p=q(0," ()");h[c]+=atoi(p);}c=q(0," ()");}g<<t<<endl;for(auto i:h)g<<i.first<<" "<<i.second<<endl;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK! | 10 |
2 | 2ms | 131kb | OK! | 10 |
3 | 3ms | 131kb | OK! | 10 |
4 | 2ms | 131kb | OK! | 10 |
5 | 2ms | 131kb | OK! | 10 |
6 | 3ms | 131kb | OK! | 10 |
7 | 3ms | 131kb | OK! | 10 |
8 | 3ms | 131kb | OK! | 10 |
9 | 3ms | 131kb | OK! | 10 |
10 | 3ms | 131kb | OK! | 10 |
Punctaj total | 100 |