Submission #65791


ソースコード

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>
using namespace std;
#define ll long long
#define rep(i,x,n) for(int i=(x);i<=(n);i++)
#define rrep(i,n,x) for(int i=(n);i>=(x);i--)
#define vi vector<int>
#define vll vector<ll>
#define vc vector<char>
#define vb vector<bool>
#define all(v) v.begin(),v.end()
#define fi first
#define se second
int main(){
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
ll a,b; cin>>a>>b;
cout<<a/b<<" "<<(a+b-1)/b<<"\n";
return 0;
}

ステータス

項目 データ
問題 0926 - わりざんして!
ユーザー名 ei2005
投稿日時 2021-02-10 17:19:44
言語 C++14
状態 Accepted
得点 1
ソースコード長 494 Byte
最大実行時間 49 ms
最大メモリ使用量 936 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample01 AC 49 ms 604 KB
1
input-sample02 AC 20 ms 564 KB
1
input-sample03 AC 20 ms 648 KB
1
input01 AC 23 ms 604 KB
1
input02 AC 32 ms 684 KB
1
input03 AC 22 ms 644 KB
1
input04 AC 21 ms 476 KB
1
input05 AC 18 ms 560 KB
1
input06 AC 20 ms 516 KB
1
input07 AC 27 ms 596 KB
1
input08 AC 28 ms 552 KB
1
input09 AC 48 ms 636 KB
1
input10 AC 23 ms 588 KB
1
input11 AC 21 ms 540 KB
1
input12 AC 20 ms 752 KB
1
input13 AC 23 ms 708 KB
1
input14 AC 20 ms 664 KB
1
input15 AC 20 ms 748 KB
1
input16 AC 21 ms 708 KB
1
input17 AC 29 ms 792 KB
1
input18 AC 32 ms 744 KB
1
input19 AC 21 ms 572 KB
1
input20 AC 26 ms 656 KB
1
input21 AC 16 ms 740 KB
1
input22 AC 24 ms 696 KB
1
input23 AC 22 ms 648 KB
1
input24 AC 26 ms 728 KB
1
input25 AC 29 ms 812 KB
1
input26 AC 22 ms 768 KB
1
input27 AC 34 ms 728 KB
1
input28 AC 30 ms 684 KB
1
input29 AC 26 ms 768 KB
1
input30 AC 22 ms 852 KB
1
input31 AC 25 ms 936 KB
1
input32 AC 23 ms 892 KB
1