Submission #66091193
Source Code Expand
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
double x = (double)A / B;
int result = round(x); // 最も近い整数に丸める
cout << result << endl;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Approximation |
| User | k10k10 |
| Language | C++ 20 (gcc 12.2) |
| Score | 150 |
| Code Size | 253 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3640 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 150 / 150 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_handmade_03.txt, 01_handmade_04.txt, 01_handmade_05.txt, 01_handmade_06.txt, 02_random_07.txt, 02_random_08.txt, 02_random_09.txt, 02_random_10.txt, 02_random_11.txt, 02_random_12.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 1 ms | 3480 KiB |
| 00_sample_01.txt | AC | 1 ms | 3404 KiB |
| 00_sample_02.txt | AC | 1 ms | 3496 KiB |
| 01_handmade_03.txt | AC | 1 ms | 3480 KiB |
| 01_handmade_04.txt | AC | 1 ms | 3436 KiB |
| 01_handmade_05.txt | AC | 1 ms | 3456 KiB |
| 01_handmade_06.txt | AC | 1 ms | 3500 KiB |
| 02_random_07.txt | AC | 1 ms | 3444 KiB |
| 02_random_08.txt | AC | 1 ms | 3640 KiB |
| 02_random_09.txt | AC | 1 ms | 3500 KiB |
| 02_random_10.txt | AC | 1 ms | 3480 KiB |
| 02_random_11.txt | AC | 1 ms | 3564 KiB |
| 02_random_12.txt | AC | 1 ms | 3568 KiB |