알고리즘

[알고리즘] 백준 25238 - 가희와 방어율 무시 (C++)

blueberrysoda 2024. 9. 16. 23:29

[문제 링크] : https://www.acmicpc.net/problem/25238

#include <iostream>
using namespace std;

int main(){
    int A, B;
    cin >> A >> B;

    int C = A * (100 - B) / 100;
    if(C >= 100){
        cout << 0 << "\n";
    }
    else{
        cout << 1 << "\n";
    }
    return 0;
}