Official
A - Discount Editorial by en_translator
If you are new to learning programming and do not know where to start, please try Problem A “Welcome to AtCoder” from practice contest. There you can find a sample code for each language.
In this problem, it is sufficient to output \(100 \times \left( 1 - \dfrac BA \right)\) in a decimal representation.
Sample Code (C++)
#include <iostream>
using namespace std;
int main(){
double A, B;
cin >> A >> B;
cout << 100 * (1 - B / A) << endl;
}
Sample Code (Python)
A, B = map(int, input().split())
print(100 * (1 - B / A))
posted:
last update: