Submission #13784965


Source Code Expand

Copy
#include<bits/stdc++.h>

using namespace std;

#define int long long
#define double long double

main() {
#ifdef HOME
    freopen("input.txt", "r", stdin);
#endif // HOME
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int a;
    double b;
    cin >> a >> b;
    double ans = a * b;
    cout << (int)ans << '\n';
    return 0;
}

Submission Info

Submission Time
Task C - Multiplication 3
User traktor74
Language C++ (GCC 9.2.1)
Score 300
Code Size 375 Byte
Status AC
Exec Time 3 ms
Memory 3748 KB

Compile Error

./Main.cpp:8:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    8 | main() {
      |      ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 20
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, hand_02.txt, hand_03.txt, random_01.txt, random_02.txt, random_03.txt, random_11.txt, random_12.txt, random_13.txt, random_21.txt, random_22.txt, random_23.txt, random_31.txt, random_32.txt, random_33.txt, sample_01.txt, sample_02.txt, sample_03.txt, zero_01.txt, zero_02.txt
Case Name Status Exec Time Memory
hand_01.txt AC 2 ms 3644 KB
hand_02.txt AC 2 ms 3676 KB
hand_03.txt AC 2 ms 3732 KB
random_01.txt AC 2 ms 3656 KB
random_02.txt AC 2 ms 3656 KB
random_03.txt AC 2 ms 3668 KB
random_11.txt AC 3 ms 3744 KB
random_12.txt AC 2 ms 3648 KB
random_13.txt AC 2 ms 3748 KB
random_21.txt AC 2 ms 3652 KB
random_22.txt AC 2 ms 3744 KB
random_23.txt AC 2 ms 3668 KB
random_31.txt AC 3 ms 3668 KB
random_32.txt AC 2 ms 3684 KB
random_33.txt AC 2 ms 3700 KB
sample_01.txt AC 2 ms 3672 KB
sample_02.txt AC 2 ms 3712 KB
sample_03.txt AC 2 ms 3652 KB
zero_01.txt AC 2 ms 3696 KB
zero_02.txt AC 2 ms 3588 KB