Submission #13787971


Source Code Expand

Copy
#include<bits/stdc++.h>
using namespace std;
using UL = unsigned int;
using ULL = unsigned long long;
using LL = long long;
#define rep(i, n) for(UL i = 0; i < (n); i++)

struct Problem {
public:

	void Solve() {
		ULL A, B;
		double b;
		cin >> A >> b;
		B = b * 100 + 0.2;
		A *= B;
		A /= 100;
		cout << A << endl;
	}
};

int main() {
	unique_ptr<Problem> p(new Problem());
	p->Solve();
	return 0;
}

Submission Info

Submission Time
Task C - Multiplication 3
User Nachia
Language C++ (GCC 9.2.1)
Score 300
Code Size 429 Byte
Status AC
Exec Time 2 ms
Memory 3680 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 2 ms 3596 KB
hand_02.txt AC 2 ms 3592 KB
hand_03.txt AC 2 ms 3680 KB
random_01.txt AC 2 ms 3648 KB
random_02.txt AC 2 ms 3652 KB
random_03.txt AC 2 ms 3600 KB
random_11.txt AC 2 ms 3676 KB
random_12.txt AC 2 ms 3600 KB
random_13.txt AC 2 ms 3652 KB
random_21.txt AC 2 ms 3520 KB
random_22.txt AC 2 ms 3648 KB
random_23.txt AC 2 ms 3512 KB
random_31.txt AC 2 ms 3656 KB
random_32.txt AC 2 ms 3652 KB
random_33.txt AC 2 ms 3648 KB
sample_01.txt AC 2 ms 3592 KB
sample_02.txt AC 2 ms 3660 KB
sample_03.txt AC 2 ms 3596 KB
zero_01.txt AC 2 ms 3660 KB
zero_02.txt AC 2 ms 3528 KB