Submission #00020


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/// {{{
#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()
{
long long a, b;
cin >> a >> b;
cout << (a / b) << ' ' << ((a + b - 1) / b) << endl;
return 0;
}

ステータス

項目 データ
問題 0003 - わりざんして!
ユーザー名 Arumakan_ei1727
投稿日時 2019-05-27 17:02:46
言語 C++14
状態 Accepted
得点 1
ソースコード長 701 Byte
最大実行時間 30 ms
最大メモリ使用量 696 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample01 AC 17 ms 604 KB
1
input-sample02 AC 17 ms 448 KB
1
input-sample03 AC 25 ms 424 KB
1
input01 AC 19 ms 400 KB
1
input02 AC 27 ms 504 KB
1
input03 AC 19 ms 604 KB
1
input04 AC 20 ms 576 KB
1
input05 AC 29 ms 544 KB
1
input06 AC 20 ms 644 KB
1
input07 AC 19 ms 612 KB
1
input08 AC 22 ms 588 KB
1
input09 AC 24 ms 564 KB
1
input10 AC 20 ms 664 KB
1
input11 AC 20 ms 640 KB
1
input12 AC 17 ms 612 KB
1
input13 AC 19 ms 588 KB
1
input14 AC 21 ms 560 KB
1
input15 AC 24 ms 532 KB
1
input16 AC 18 ms 632 KB
1
input17 AC 24 ms 472 KB
1
input18 AC 24 ms 448 KB
1
input19 AC 20 ms 548 KB
1
input20 AC 20 ms 524 KB
1
input21 AC 24 ms 496 KB
1
input22 AC 28 ms 592 KB
1
input23 AC 26 ms 560 KB
1
input24 AC 22 ms 536 KB
1
input25 AC 17 ms 632 KB
1
input26 AC 17 ms 600 KB
1
input27 AC 21 ms 696 KB
1
input28 AC 21 ms 540 KB
1
input29 AC 30 ms 640 KB
1
input30 AC 24 ms 616 KB
1
input31 AC 22 ms 592 KB
1
input32 AC 21 ms 696 KB
1