#944
rest
Un număr natural se împarte la toate numerele obținute din el prin eliminarea unei cifre. Care este restul maxim care se poate obține?
Problema | rest | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #17690197 | Utilizator | |
Fișier | rest.cpp | Dimensiune | 511 B |
Data încărcării | 17 Octombrie 2019, 15:10 | Scor / rezultat | Eroare de compilare |
rest.cpp:13:1: error: stray '\302' in program cin >> n; ^ rest.cpp:13:1: error: stray '\240' in program rest.cpp:13:1: error: stray '\302' in program rest.cpp:13:1: error: stray '\240' in program rest.cpp:15:1: error: stray '\302' in program r = n; ^ rest.cpp:15:1: error: stray '\240' in program rest.cpp:15:1: error: stray '\302' in program rest.cpp:15:1: error: stray '\240' in program rest.cpp:17:1: error: stray '\302' in program p = 1; ^ rest.cpp:17:1: error: stray '\240' in program rest.cpp:17:1: error: stray '\302' in program rest.cpp:17:1: error: stray '\240' in program rest.cpp:19:1: error: stray '\302' in program maxim =- 1; ^ rest.cpp:19:1: error: stray '\240' in program rest.cpp:19:1: error: stray '\302' in program rest.cpp:19:1: error: stray '\240' in program rest.cpp:21:1: error: stray '\302' in program do ^ rest.cpp:21:1: error: stray '\240' in program rest.cpp:21:1: error: stray '\302' in program rest.cpp:21:1: error: stray '\240' in program rest.cpp:23:1: error: stray '\302' in program { ^ rest.cpp:23:1: error: stray '\240' in program rest.cpp:23:1: error: stray '\302' in program rest.cpp:23:1: error: stray '\240' in program rest.cpp:25:1: error: stray '\302' in program m = (n / (10 * p)) * p + n % p; ^ rest.cpp:25:1: error: stray '\240' in program rest.cpp:25:1: error: stray '\302' in program rest.cpp:25:1: error: stray '\240' in program rest.cpp:25:1: error: stray '\302' in program rest.cpp:25:1: error: stray '\240' in program rest.cpp:25:1: error: stray '\302' in program rest.cpp:25:1: error: stray '\240' in program rest.cpp:27:1: error: stray '\302' in program if(m != 0) ^ rest.cpp:27:1: error: stray '\240' in program rest.cpp:27:1: error: stray '\302' in program rest.cpp:27:1: error: stray '\240' in program rest.cpp:27:1: error: stray '\302' in program rest.cpp:27:1: error: stray '\240' in program rest.cpp:27:1: error: stray '\302' in program rest.cpp:27:1: error: stray '\240' in program rest.cpp:29:1: error: stray '\302' in program { ^ rest.cpp:29:1: error: stray '\240' in program rest.cpp:29:1: error: stray '\302' in program rest.cpp:29:1: error: stray '\240' in program rest.cpp:29:1: error: stray '\302' in program rest.cpp:29:1: error: stray '\240' in program rest.cpp:29:1: error: stray '\302' in program rest.cpp:29:1: error: stray '\240' in program rest.cpp:31:1: error: stray '\302' in program if(n % m > maxim) ^ rest.cpp:31:1: error: stray '\240' in program rest.cpp:31:1: error: stray '\302' in program rest.cpp:31:1: error: stray '\240' in program rest.cpp:31:1: error: stray '\302' in program rest.cpp:31:1: error: stray '\240' in program rest.cpp:31:1: error: stray '\302' in program rest.cpp:31:1: error: stray '\240' in program rest.cpp:31:1: error: stray '\302' in program rest.cpp:31:1: error: stray '\240' in program rest.cpp:31:1: error: stray '\302' in program rest.cpp:31:1: error: stray '\240' in program rest.cpp:33:1: error: stray '\302' in program maxim = n % m; ^ rest.cpp:33:1: error: stray '\240' in program rest.cpp:33:1: error: stray '\302' in program rest.cpp:33:1: error: stray '\240' in program rest.cpp:33:1: error: stray '\302' in program rest.cpp:33:1: error: stray '\240' in program rest.cpp:33:1: error: stray '\302' in program rest.cpp:33:1: error: stray '\240' in program rest.cpp:33:1: error: stray '\302' in program rest.cpp:33:1: error: stray '\240' in program rest.cpp:33:1: error: stray '\302' in program rest.cpp:33:1: error: stray '\240' in program rest.cpp:33:1: error: stray '\302' in program rest.cpp:33:1: error: stray '\240' in program rest.cpp:33:1: error: stray '\302' in program rest.cpp:33:1: error: stray '\240' in program rest.cpp:35:1: error: stray '\302' in program } ^ rest.cpp:35:1: error: stray '\240' in program rest.cpp:35:1: error: stray '\302' in program rest.cpp:35:1: error: stray '\240' in program rest.cpp:35:1: error: stray '\302' in program rest.cpp:35:1: error: stray '\240' in program rest.cpp:35:1: error: stray '\302' in program rest.cpp:35:1: error: stray '\240' in program rest.cpp:37:1: error: stray '\302' in program r = n / (10 * p); ^ rest.cpp:37:1: error: stray '\240' in program rest.cpp:37:1: error: stray '\302' in program rest.cpp:37:1: error: stray '\240' in program rest.cpp:37:1: error: stray '\302' in program rest.cpp:37:1: error: stray '\240' in program rest.cpp:37:1: error: stray '\302' in program rest.cpp:37:1: error: stray '\240' in program rest.cpp:39:1: error: stray '\302' in program p = p * 10; ^ rest.cpp:39:1: error: stray '\240' in program rest.cpp:39:1: error: stray '\302' in program rest.cpp:39:1: error: stray '\240' in program rest.cpp:39:1: error: stray '\302' in program rest.cpp:39:1: error: stray '\240' in program rest.cpp:39:1: error: stray '\302' in program rest.cpp:39:1: error: stray '\240' in program rest.cpp:41:1: error: stray '\302' in program } ^ rest.cpp:41:1: error: stray '\240' in program rest.cpp:41:1: error: stray '\302' in program rest.cpp:41:1: error: stray '\240' in program rest.cpp:43:1: error: stray '\302' in program while(r != 0); ^ rest.cpp:43:1: error: stray '\240' in program rest.cpp:43:1: error: stray '\302' in program rest.cpp:43:1: error: stray '\240' in program rest.cpp:45:1: error: stray '\302' in program cout << maxim; ^ rest.cpp:45:1: error: stray '\240' in program rest.cpp:45:1: error: stray '\302' in program rest.cpp:45:1: error: stray '\240' in program rest.cpp:47:1: error: stray '\302' in program return 0; ^ rest.cpp:47:1: error: stray '\240' in program rest.cpp:47:1: error: stray '\302' in program rest.cpp:47:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema rest 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ă.