Submission #41539155
Source Code Expand
#include<bits/stdc++.h>
#include<atcoder/all>
using namespace std;
using namespace atcoder;
using ll=long long;
template<class T,class U> inline bool chmin(T&x,U y){if(x>y){x=y;return true;}return false;}
template<class T,class U> inline bool chmax(T&x,U y){if(x<y){x=y;return true;}return false;}
void solve(){
ll a, b;
cin >> a >> b;
cout << (a-1) / b + 1 << endl;
}
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
solve();
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Attack |
| User | Motsu_xe |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 482 Byte |
| Status | AC |
| Exec Time | 8 ms |
| Memory | 3628 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example_00.txt, example_01.txt, example_02.txt |
| All | example_00.txt, example_01.txt, example_02.txt, test_00.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_00.txt | AC | 8 ms | 3628 KiB |
| example_01.txt | AC | 2 ms | 3436 KiB |
| example_02.txt | AC | 2 ms | 3612 KiB |
| test_00.txt | AC | 4 ms | 3500 KiB |
| test_01.txt | AC | 3 ms | 3608 KiB |
| test_02.txt | AC | 2 ms | 3504 KiB |
| test_03.txt | AC | 2 ms | 3480 KiB |
| test_04.txt | AC | 2 ms | 3564 KiB |
| test_05.txt | AC | 2 ms | 3504 KiB |
| test_06.txt | AC | 2 ms | 3612 KiB |
| test_07.txt | AC | 2 ms | 3548 KiB |
| test_08.txt | AC | 3 ms | 3544 KiB |
| test_09.txt | AC | 2 ms | 3544 KiB |
| test_10.txt | AC | 2 ms | 3504 KiB |
| test_11.txt | AC | 2 ms | 3608 KiB |