Submission #53238


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
#define reps(i,n) for(int i=1;i<=(n);++i)
#define all(x) (x).begin(),(x).end()
#define int long long
const int INF = 0x3f3f3f3f;
const long long LINF = 0x3f3f3f3f3f3f3f3fLL;
signed main(){
cin.tie(0);
ios::sync_with_stdio(false);
int a,b;
cin >> a >> b;
cout << a / b << ' ' << (a + b - 1) / b << '\n';
return 0;
}

ステータス

項目 データ
問題 0926 - わりざんして!
ユーザー名 ei1903
投稿日時 2019-08-20 11:18:21
言語 C++14
状態 Accepted
得点 1
ソースコード長 442 Byte
最大実行時間 77 ms
最大メモリ使用量 892 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample01 AC 40 ms 604 KB
1
input-sample02 AC 23 ms 560 KB
1
input-sample03 AC 21 ms 644 KB
1
input01 AC 22 ms 600 KB
1
input02 AC 35 ms 684 KB
1
input03 AC 28 ms 512 KB
1
input04 AC 24 ms 596 KB
1
input05 AC 17 ms 552 KB
1
input06 AC 20 ms 636 KB
1
input07 AC 22 ms 592 KB
1
input08 AC 21 ms 676 KB
1
input09 AC 40 ms 628 KB
1
input10 AC 26 ms 584 KB
1
input11 AC 23 ms 540 KB
1
input12 AC 17 ms 624 KB
1
input13 AC 23 ms 704 KB
1
input14 AC 18 ms 532 KB
1
input15 AC 29 ms 612 KB
1
input16 AC 22 ms 696 KB
1
input17 AC 41 ms 652 KB
1
input18 AC 18 ms 740 KB
1
input19 AC 26 ms 696 KB
1
input20 AC 26 ms 776 KB
1
input21 AC 16 ms 728 KB
1
input22 AC 25 ms 688 KB
1
input23 AC 24 ms 640 KB
1
input24 AC 24 ms 852 KB
1
input25 AC 32 ms 804 KB
1
input26 AC 26 ms 760 KB
1
input27 AC 77 ms 716 KB
1
input28 AC 16 ms 804 KB
1
input29 AC 42 ms 756 KB
1
input30 AC 39 ms 840 KB
1
input31 AC 19 ms 800 KB
1
input32 AC 25 ms 892 KB
1