알고리즘

[알고리즘] 백준 17356 - 욱 제 (C++)

blueberrysoda 2024. 12. 31. 21:39

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

#include <iostream>
#include <cmath>
using namespace std;

int main(){
    double A, B, C;
    cin >> A >> B;
    C = (B - A) / 400;
    cout << fixed;
    cout.precision(20);
    cout << 1 / (1 + pow(10, C)) << "\n";
    return 0;
}