Submission #13790960


Source Code Expand

Copy
#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
using namespace std;
typedef long long int ll;
typedef pair<int,int> P;
#define yn {puts("Yes");}else{puts("No");}
#define MAX_N 200005

int main() {
    ll a;
    string s;
    cin >> a >> s;

    ll b = (s[0]-'0')*100 + (s[2]-'0')*10 + s[3]-'0';

    ll ans = a * b / 100;

    cout << ans << endl;
    return 0;
}


Submission Info

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

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 3 ms 3596 KB
hand_02.txt AC 2 ms 3572 KB
hand_03.txt AC 2 ms 3408 KB
random_01.txt AC 2 ms 3432 KB
random_02.txt AC 2 ms 3624 KB
random_03.txt AC 2 ms 3548 KB
random_11.txt AC 2 ms 3544 KB
random_12.txt AC 2 ms 3492 KB
random_13.txt AC 1 ms 3544 KB
random_21.txt AC 2 ms 3628 KB
random_22.txt AC 2 ms 3628 KB
random_23.txt AC 2 ms 3544 KB
random_31.txt AC 2 ms 3576 KB
random_32.txt AC 2 ms 3468 KB
random_33.txt AC 2 ms 3488 KB
sample_01.txt AC 2 ms 3492 KB
sample_02.txt AC 2 ms 3432 KB
sample_03.txt AC 2 ms 3548 KB
zero_01.txt AC 2 ms 3412 KB
zero_02.txt AC 2 ms 3492 KB