Submission #13826784
Source Code Expand
Copy
#include <iostream> #include <string> using i64 = long long; int main() { i64 a; std::string s; std::cin >> a >> s; std::string t; for (const char c : s) if (c != '.') t += c; const i64 b = std::stoi(t); std::cout << a * b / 100 << std::endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - Multiplication 3 |
User | CharlotteL |
Language | C++ (GCC 9.2.1) |
Score | 300 |
Code Size | 306 Byte |
Status | AC |
Exec Time | 3 ms |
Memory | 3608 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
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 | 3396 KB |
hand_02.txt | AC | 2 ms | 3476 KB |
hand_03.txt | AC | 2 ms | 3608 KB |
random_01.txt | AC | 2 ms | 3412 KB |
random_02.txt | AC | 2 ms | 3508 KB |
random_03.txt | AC | 2 ms | 3396 KB |
random_11.txt | AC | 2 ms | 3396 KB |
random_12.txt | AC | 2 ms | 3464 KB |
random_13.txt | AC | 2 ms | 3600 KB |
random_21.txt | AC | 2 ms | 3580 KB |
random_22.txt | AC | 2 ms | 3468 KB |
random_23.txt | AC | 2 ms | 3580 KB |
random_31.txt | AC | 2 ms | 3604 KB |
random_32.txt | AC | 2 ms | 3584 KB |
random_33.txt | AC | 2 ms | 3504 KB |
sample_01.txt | AC | 2 ms | 3600 KB |
sample_02.txt | AC | 2 ms | 3476 KB |
sample_03.txt | AC | 2 ms | 3588 KB |
zero_01.txt | AC | 2 ms | 3584 KB |
zero_02.txt | AC | 2 ms | 3464 KB |