12134 - The Big Hammer Rise
raw download clone
C
views 31
,
size 264 b
#include <stdio.h>

int main(void)
{
    int a, a1, a2, b, b1, b2, ans;

    scanf("%d.%d %d.%d", &a1, &a2, &b1, &b2);
    a = 100 * a1 + a2;
    b = 100 * b1 + b2;
    ans = a * b;
    printf("%d.%04d\n", ans / 10000, ans % 10000);

    return 0;
}
close fullscreen
Login or Register to edit or fork this paste. It's free.