Source Code
#include <bits/stdc++.h>
using namespace std;
int main(){
  float n,m,k;
  cin>>n>>m>>k;
  cout<<ceil((m*k) /( m+k  ) * n );
}
  
  
Copy
Hurry up momo
GNU G++17
1 ms
244 KB
Wrong Answer
Test Case #1
1 ms
244 KB
Accepted
Input
10 2 3
Output
12
Judge Output
12
Checker Message
"12"
Test Case #2
1 ms
192 KB
Wrong Answer
Input
1000000000 1000000000 1000000000
Output
5e+17
Judge Output
500000000000000000
Checker Message
1st words differ - expected: '500000000000000000', found: '5e+17'