Please subscribe to the official Codeforces channel in Telegram via the link ×

Atcoder Beginner Contest #169 — Problem C

Revision en1, by epsilon_573, 2020-06-06 18:48:47

I have tried 20-30 times , using floor() and type casting but I can't seem to get AC. What is the problem here? Thanks for the help.

Problem :

// Author : Epsilon573
// If it works, don't touch it.

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef long double ld;

int main()
    ios_base :: sync_with_stdio(false);

    ll a; ld b;
    cin >> a >> b;

    ll c = b*100;

    cout << a*c/100LL;

    return 0;
Tags atcoder


  Rev. Lang. By When Δ Comment
en1 English epsilon_573 2020-06-06 18:48:47 613 Initial revision (published)