Source Code
#include <bits/stdc++.h>
using namespace std;
int main(){
  double n,m,k;
  cin>>n>>m>>k;
  cout<<static_cast<long long>(ceil((m*k) /( m+k  ) * n ));
}
  
  
Copy
Hurry up momo
GNU G++17
1 ms
220 KB
Wrong Answer
Test Case #1
1 ms
184 KB
Accepted
Input
10 2 3
Output
12
Judge Output
12
Checker Message
"12"
Test Case #2
1 ms
220 KB
Accepted
Input
1000000000 1000000000 1000000000
Output
500000000000000000
Judge Output
500000000000000000
Checker Message
"500000000000000000"
Test Case #3
0 ms
216 KB
Accepted
Input
1000000000 1 254
Output
996078432
Judge Output
996078432
Checker Message
"996078432"
Test Case #4
0 ms
220 KB
Accepted
Input
1 25 654
Output
25
Judge Output
25
Checker Message
"25"
Test Case #5
1 ms
216 KB
Wrong Answer
Input
15684 1002 1003
Output
7861604
Judge Output
7861692
Checker Message
1st words differ - expected: '7861692', found: '7861604'