[C++] AtCoder Beginner Contest 186 A번 Brick
13 Jan 2021 | PSAtCoder Beginner Contest 186 A번 Brick
문제
https://atcoder.jp/contests/abc186/tasks/abc186_a
풀이
트럭이 최대 N 킬로그램을 싣고 달릴 수 있을 때 W 킬로그램만큼의 짐을 옮기려면 몇번을 옮겨야하는지 묻는 문제
N / W를 출력하면 정답
코드
#pragma warning(disable : 4996)
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef long double ld;
typedef vector<ll> vll;
typedef pair<ll, ll> pll;
typedef pair<ld, ld> pld;
typedef tuple<ll,ll,ll> tl3;
#define FOR(a, b, c) for (int(a) = (b); (a) < (c); ++(a))
#define FORN(a, b, c) for (int(a) = (b); (a) <= (c); ++(a))
#define rep(i, n) FOR(i, 0, n)
#define repn(i, n) FORN(i, 1, n)
#define tc(t) while (t--)
// https://atcoder.jp/contests/abc186/tasks/abc186_a
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll n,w;
cin >> n >> w;
cout << n / w;
return 0;
}