#2928
SqrtXXL
Se dă numărul real n
. Calculați \( \sqrt{n} \) cu 8
zecimale exacte.
Problema | SqrtXXL | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.6 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
Id soluție | #54947343 | Utilizator | |
Fișier | sqrtxxl.cpp | Dimensiune | 7.70 KB |
Data încărcării | 13 Decembrie 2024, 09:29 | Scor / rezultat | 100 puncte |
sqrtxxl.cpp: In function 'std::string sx(std::string, std::string)': sqrtxxl.cpp:26:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(str1.find('.')!=-1) ^ sqrtxxl.cpp:28:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(str2.find('.')!=-1) ^ sqrtxxl.cpp: In function 'std::string px(std::string, std::string)': sqrtxxl.cpp:79:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(num1.find('.')!=-1) ^ sqrtxxl.cpp:81:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(num2.find('.')!=-1) ^ sqrtxxl.cpp: In function 'std::string dx(std::string, std::string)': sqrtxxl.cpp:145:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(str1.find('.')!=-1) ^ sqrtxxl.cpp:147:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(str2.find('.')!=-1) ^ sqrtxxl.cpp: In function 'std::string srx(std::string)': sqrtxxl.cpp:210:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(s.find('.')==-1) ^ sqrtxxl.cpp:249:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=o;i<s.size();) ^ sqrtxxl.cpp:331:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(rez.size()-k>8 && k<rez.size()) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 5 | 5 | Exemplu | |
2 | 0 secunde | OK. | 5 | 5 | Exemplu | |
3 | 0 secunde | OK. | 5 | 5 | ||
4 | 0 secunde | OK. | 5 | 5 | ||
5 | 0 secunde | OK. | 5 | 5 | ||
6 | 0 secunde | OK. | 5 | 5 | ||
7 | 0 secunde | OK. | 5 | 5 | ||
8 | 0 secunde | OK. | 5 | 5 | ||
9 | 0 secunde | OK. | 5 | 5 | ||
10 | 0 secunde | OK. | 5 | 5 | ||
11 | 0 secunde | OK. | 5 | 5 | ||
12 | 0.004 secunde | OK. | 5 | 5 | ||
13 | 0 secunde | OK. | 5 | 5 | ||
14 | 0.144 secunde | OK. | 5 | 5 | ||
15 | 0 secunde | OK. | 5 | 5 | ||
16 | 0 secunde | OK. | 5 | 5 | ||
17 | 0.476 secunde | OK. | 5 | 5 | ||
18 | 0.052 secunde | OK. | 5 | 5 | ||
19 | 0.136 secunde | OK. | 5 | 5 | ||
20 | 0.004 secunde | OK. | 5 | 5 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SqrtXXL face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.