#2059
porumbei
2 numere puse în aşa fel încât rezultatul a
X
– a
Y
să fie divizibil cu n
. X
și Y
sunt numerele de pe inelele porumbeilor pe care îi va trimite la concurs.
Concursul Interjudețean de Informatică "Spiru Haret" Targu Jiu, Ed. II
Problema | porumbei | Operații I/O |
porumbei.in /porumbei.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 1 MB
/
Stivă 1 MB
|
Id soluție | #50520328 | Utilizator | |
Fișier | porumbei.cpp | Dimensiune | 785 B |
Data încărcării | 12 Aprilie 2024, 17:22 | Scor / rezultat | 0 puncte |
porumbei.cpp: In function 'long int putere(int, unsigned int)': porumbei.cpp:8:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=n;i++) ^ porumbei.cpp: In function 'int main()': porumbei.cpp:16:9: warning: unused variable 'p' [-Wunused-variable] int p,n,a,x,y; ^ porumbei.cpp:16:15: warning: variable 'x' set but not used [-Wunused-but-set-variable] int p,n,a,x,y; ^ porumbei.cpp:16:17: warning: variable 'y' set but not used [-Wunused-but-set-variable] int p,n,a,x,y; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Exited with error status 1 | 5 | 0 | ||
2 | 0 secunde | Exited with error status 1 | 5 | 0 | ||
3 | 0 secunde | Exited with error status 1 | 5 | 0 | ||
4 | 0 secunde | Exited with error status 1 | 5 | 0 | ||
5 | 0 secunde | Exited with error status 1 | 5 | 0 | ||
6 | 0 secunde | Exited with error status 1 | 5 | 0 | ||
7 | 0 secunde | Exited with error status 1 | 5 | 0 | ||
8 | 0 secunde | Exited with error status 1 | 5 | 0 | ||
9 | 0 secunde | Exited with error status 1 | 5 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
11 | 0 secunde | Exited with error status 1 | 5 | 0 | ||
12 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
13 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
14 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
15 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
16 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
17 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
18 | 0 secunde | Exited with error status 1 | 5 | 0 | ||
19 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
20 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema porumbei 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ă.