QOJ.ac

QOJ

시간 제한: 2 s 메모리 제한: 1024 MB

#23973. Test

통계

Testo del problema

In un test hai risposto correttamente a $1$ domanda da $A$ punti per $1$ domanda, e hai risposto correttamente a $B$ domande da $300$ punti per $1$ domanda.

Stampa il punteggio totale delle domande a cui hai risposto correttamente.

Vincoli

  • $1000 \le A \le 32000$.
  • $1 \le B \le 10$.
  • Tutti i valori in input sono numeri interi.

Input

L'input è fornito nel seguente formato:

A
B

Output

Stampa il punteggio totale delle domande a cui hai risposto correttamente.

Non stampare nient'altro oltre alla risposta. (Non stampare frasi che richiedono l'input, ecc.)

Per il formato della risposta puoi anche fare riferimento ai problemi di allenamento e relativi esempi di soluzione.


Esempio di Input $1$

1000
1

Esempio di Output $1$

1300

Nel test hai risposto correttamente a $1$ domanda da $1000$ punti per $1$ domanda, e hai risposto correttamente a $1$ domanda da $300$ punti per $1$ domanda.

Il punteggio totale delle domande a cui hai risposto correttamente è $1000 \times 1 + 300 \times 1 = 1300$. Pertanto si stampa $1300$.


Esempio di Input $2$

8000
2

Esempio di Output $2$

8600

Nel test hai risposto correttamente a $1$ domanda da $8000$ punti per $1$ domanda, e hai risposto correttamente a $2$ domande da $300$ punti per $1$ domanda.

Il punteggio totale delle domande a cui hai risposto correttamente è $8000 \times 1 + 300 \times 2 = 8600$. Pertanto si stampa $8600$.


Esempio di Input $3$

32000
3

Esempio di Output $3$

32900

Nel test hai risposto correttamente a $1$ domanda da $32000$ punti per $1$ domanda, e hai risposto correttamente a $3$ domande da $300$ punti per $1$ domanda.

Il punteggio totale delle domande a cui hai risposto correttamente è $32000 \times 1 + 300 \times 3 = 32900$. Pertanto si stampa $32900$.


Esempio di Input $4$

1000
10

Esempio di Output $4$

4000

Nel test hai risposto correttamente a $1$ domanda da $1000$ punti per $1$ domanda, e hai risposto correttamente a $10$ domande da $300$ punti per $1$ domanda.

Il punteggio totale delle domande a cui hai risposto correttamente è $1000 \times 1 + 300 \times 10 = 4000$. Pertanto si stampa $4000$.

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.