Detalii evaluare #15599152

Rezumat problemă

#2319 abc

Se dau două numere naturale nenule a şi b, iar produsul lor îl notăm cu c. Aflaţi cel mai mare divizor propriu al lui A=2c-1.

Detalii

Problema abc Operații I/O tastatură/ecran
Limita timp 1.5 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #15599152 Utilizator Andrei Visalon (Prekzursil)
Fișier abc.cpp Dimensiune 174 B
Data încărcării 30 Aprilie 2019, 00:51 Scor / rezultat 0 puncte

Evaluare


Mesaj compilare

abc.cpp: In function 'int main()':
abc.cpp:8:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=2;i<s.size();i++)

                          ^

Rezultat evaluare

Test Timp Mesaj evaluare Scor posibil Scor obținut
1 0 secunde Exited with error status 100 4 0
2 0 secunde Exited with error status 100 4 0
3 0 secunde Exited with error status 100 4 0
4 0 secunde Exited with error status 100 4 0
5 0 secunde Exited with error status 100 4 0
6 0 secunde Exited with error status 100 4 0
7 0 secunde Exited with error status 100 4 0
8 0 secunde Exited with error status 100 4 0
9 0 secunde Exited with error status 100 4 0
10 0 secunde Exited with error status 100 4 0
11 0 secunde Exited with error status 100 4 0
12 0 secunde Exited with error status 100 4 0
13 0 secunde Exited with error status 1 4 0
14 0 secunde Exited with error status 1 4 0
15 0 secunde Exited with error status 9 4 0
16 0 secunde Exited with error status 7 4 0
17 0 secunde Exited with error status 7 4 0
18 0 secunde Exited with error status 4 4 0
19 0 secunde Exited with error status 3 4 0
20 0 secunde Raspuns gresit. 4 0
21 0 secunde Exited with error status 7 4 0
22 0 secunde Exited with error status 9 4 0
23 0 secunde Exited with error status 3 4 0
24 0 secunde Exited with error status 7 4 0
25 0 secunde Exited with error status 4 4 0
Punctaj total 0

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema abc face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.