#3210
Cumparaturi
O cutie cu bomboane costă B
lei. Gigel are S
lei. Determinați câte cutii cu bomboane poate cumpăra Gigel și câți lei trebuie să mai primească pentru a cumpăra încă o cutie.
Problema | Cumparaturi | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #21469124 | Utilizator | |
Fișier | cumparaturi.java | Dimensiune | 197 B |
Data încărcării | 02 Martie 2020, 16:12 | Scor / rezultat | Eroare de compilare |
/home/ssilviu/grader/work/cumparaturi.java:1: error: Syntax error on token "def", @ expected def ex_4(input_data): ^^^ /home/ssilviu/grader/work/cumparaturi.java:1: error: Syntax error on tokens, delete these tokens def ex_4(input_data): ^^ /home/ssilviu/grader/work/cumparaturi.java:2: error: Syntax error on token "=", != expected (B,S) = input_data.split() ^ /home/ssilviu/grader/work/cumparaturi.java:2: error: Syntax error on token ")", [ expected after this token (B,S) = input_data.split() ^ /home/ssilviu/grader/work/cumparaturi.java:3: error: Syntax error on token "int", ) expected after this token C = (int(int(S)/int(B))) ^^^ /home/ssilviu/grader/work/cumparaturi.java:3: error: Syntax error on token "int", ) expected after this token C = (int(int(S)/int(B))) ^^^ /home/ssilviu/grader/work/cumparaturi.java:3: error: Syntax error on token "int", invalid ( C = (int(int(S)/int(B))) ^^^ /home/ssilviu/grader/work/cumparaturi.java:3: error: Syntax error on token ")", [ expected C = (int(int(S)/int(B))) ^ /home/ssilviu/grader/work/cumparaturi.java:4: error: Syntax error on token "int", delete this token P = int(B) - (int(S)%int(B)) ^^^ /home/ssilviu/grader/work/cumparaturi.java:4: error: Syntax error on token "int", ) expected after this token P = int(B) - (int(S)%int(B)) ^^^ /home/ssilviu/grader/work/cumparaturi.java:4: error: Syntax error on token "int", invalid ( P = int(B) - (int(S)%int(B)) ^^^ /home/ssilviu/grader/work/cumparaturi.java:4: error: Syntax error on token ")", [ expected after this token P = int(B) - (int(S)%int(B)) ^ /home/ssilviu/grader/work/cumparaturi.java:5: error: Syntax error on token "int", delete this token print(int(C),' ',int(P)) ^^^ /home/ssilviu/grader/work/cumparaturi.java:5: error: Syntax error on token "int", delete this token print(int(C),' ',int(P)) ^^^ /home/ssilviu/grader/work/cumparaturi.java:6: error: Syntax error on token "if", [ expected if __name__ == '__main__' : ^^ /home/ssilviu/grader/work/cumparaturi.java:6: error: Syntax error on token ":", delete this token if __name__ == '__main__' : ^ /home/ssilviu/grader/work/cumparaturi.java:8: error: Syntax error, insert "]" to complete Expression ex_4(input()) ^ /home/ssilviu/grader/work/cumparaturi.java:8: error: Syntax error, insert "]" to complete Expression ex_4(input()) ^ /home/ssilviu/grader/work/cumparaturi.java:8: error: Syntax error, insert "]" to complete Expression ex_4(input()) ^ /home/ssilviu/grader/work/cumparaturi.java:8: error: Syntax error, insert "]" to complete Expression ex_4(input()) ^ /home/ssilviu/grader/work/cumparaturi.java:8: error: Syntax error, insert ")" to complete Modifiers ex_4(input()) ^ /home/ssilviu/grader/work/cumparaturi.java:8: error: Syntax error, insert "enum Identifier" to complete EnumHeader ex_4(input()) ^ /home/ssilviu/grader/work/cumparaturi.java:8: error: Syntax error, insert "EnumBody" to complete CompilationUnit ex_4(input()) ^ 23 problems (23 errors)
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cumparaturi 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ă.