#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 | #49307133 | Utilizator | |
Fișier | sqrtxxl.cpp | Dimensiune | 7.77 KB |
Data încărcării | 25 Februarie 2024, 16:43 | Scor / rezultat | 100 puncte |
sqrtxxl.cpp: In function 'std::string sx(std::string, std::string)': sqrtxxl.cpp:27:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(str1.find('.')!=-1) ^ sqrtxxl.cpp:29: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:80:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(num1.find('.')!=-1) ^ sqrtxxl.cpp:82: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:146:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(str1.find('.')!=-1) ^ sqrtxxl.cpp:148: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:211:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(s.find('.')==-1) ^ sqrtxxl.cpp:250:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=o;i<s.size();) ^ sqrtxxl.cpp:332: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.14 secunde | OK. | 5 | 5 | ||
15 | 0 secunde | OK. | 5 | 5 | ||
16 | 0 secunde | OK. | 5 | 5 | ||
17 | 0.48 secunde | OK. | 5 | 5 | ||
18 | 0.052 secunde | OK. | 5 | 5 | ||
19 | 0.144 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ă.