#999
Se dau două numere naturale diferite. Afişaţi cel mai mic număr care poate fi scris folosind toate cifrele celor două numere date.
| Problema | Numere7 | Operații I/O |
numere7.in/numere7.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64749351 | Utilizator | |
| Fișier | numere7.cpp | Dimensiune | 556 B |
| Data încărcării | 27 Mai 2026, 17:14 | Scor/rezultat | 0 puncte |
numere7.cpp: In function ‘int main()’: numere7.cpp:6:23: warning: variable ‘s1’ set but not used [-Wunused-but-set-variable] 6 | {long long a[15001],s,s1,x,y,k,r,v,ok,b[15001],m,c,c1; | ^~ numere7.cpp:6:26: warning: unused variable ‘x’ [-Wunused-variable] 6 | {long long a[15001],s,s1,x,y,k,r,v,ok,b[15001],m,c,c1; | ^ numere7.cpp:6:28: warning: unused variable ‘y’ [-Wunused-variable] 6 | {long long a[15001],s,s1,x,y,k,r,v,ok,b[15001],m,c,c1; | ^ numere7.cpp:6:32: warning: unused variable ‘r’ [-Wunused-variable] 6 | {long long a[15001],s,s1,x,y,k,r,v,ok,b[15001],m,c,c1; | ^ numere7.cpp:6:34: warning: unused variable ‘v’ [-Wunused-variable] 6 | {long long a[15001],s,s1,x,y,k,r,v,ok,b[15001],m,c,c1; | ^ numere7.cpp:6:39: warning: unused variable ‘b’ [-Wunused-variable] 6 | {long long a[15001],s,s1,x,y,k,r,v,ok,b[15001],m,c,c1; | ^ numere7.cpp:6:50: warning: variable ‘c’ set but not used [-Wunused-but-set-variable] 6 | {long long a[15001],s,s1,x,y,k,r,v,ok,b[15001],m,c,c1; | ^ numere7.cpp:6:52: warning: variable ‘c1’ set but not used [-Wunused-but-set-variable] 6 | {long long a[15001],s,s1,x,y,k,r,v,ok,b[15001],m,c,c1; | ^~ In file included from /usr/include/c++/13/bits/stl_pair.h:61, from /usr/include/c++/13/bits/stl_algobase.h:64, from /usr/include/c++/13/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51, from numere7.cpp:1: In function ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = long long int]’, inlined from ‘int main()’ at numere7.cpp:32:6: /usr/include/c++/13/bits/move.h:198:11: warning: ‘k’ may be used uninitialized [-Wmaybe-uninitialized] 198 | __a = _GLIBCXX_MOVE(__b); | ^ numere7.cpp: In function ‘int main()’: numere7.cpp:6:30: note: ‘k’ was declared here 6 | {long long a[15001],s,s1,x,y,k,r,v,ok,b[15001],m,c,c1; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere7 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ă.