Submission #00037


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/// {{{
#include "bits/stdc++.h"
#define ALL(x) x.begin(), x.end()
#define iostreamBooster() do{cin.tie(nullptr);ios::sync_with_stdio(false);}while(0)
#define rep(i, s, t) for(int i = int(s); i < int(t); ++i)
using namespace std;
typedef long long i64;
typedef pair<int,int> pii;
template<class A, class B>inline bool chmax(A &a, const B &b){return b>a ? a=b,1 : 0;}
template<class A, class B>inline bool chmin(A &a, const B &b){return b<a ? a=b,1 : 0;}
constexpr int INF = 0x3f3f3f3f;
constexpr i64 LINF = 0x3f3f3f3f3f3f3f3fLL;
// }}}
signed main()
{
i64 l, x;
cin >> l >> x;
cout << (l + x - 1) / x << endl;
return 0;
}

ステータス

項目 データ
問題 0005 - 紙テープ
ユーザー名 Arumakan_ei1727
投稿日時 2019-05-27 17:06:11
言語 C++14
状態 Accepted
得点 1
ソースコード長 670 Byte
最大実行時間 56 ms
最大メモリ使用量 680 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample01 AC 22 ms 476 KB
1
input-sample02 AC 56 ms 576 KB
1
input01 AC 33 ms 548 KB
1
input02 AC 18 ms 388 KB
1
input03 AC 27 ms 616 KB
1
input04 AC 23 ms 584 KB
1
input05 AC 24 ms 680 KB
1
input06 AC 27 ms 528 KB
1
input07 AC 21 ms 632 KB
1
input08 AC 20 ms 604 KB
1
input09 AC 20 ms 580 KB
1
input10 AC 23 ms 552 KB
1
input11 AC 38 ms 528 KB
1
input12 AC 22 ms 624 KB
1
input13 AC 21 ms 596 KB
1
input14 AC 32 ms 564 KB
1
input15 AC 47 ms 664 KB
1