Submission #00156


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<bits/stdc++.h>
using namespace std;
#define re return(0)
#define en "\n"
int main(){
int n,m;
cin>>n>>m;
if(n>=m){
cout<<1<<en;
}else if(m%n!=0){
cout<<m/n+1<<en;
}else{
cout<<m/n<<en;
}
re;
}

ステータス

項目 データ
問題 0006 - 旅行先のパーティー
ユーザー名 SPAAcup(ei2324)
投稿日時 2024-04-26 16:16:12
言語 C++17
状態 Accepted
得点 10
ソースコード長 268 Byte
最大実行時間 34 ms
最大メモリ使用量 652 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01.txt AC 20 ms 476 KB
1
in02.txt AC 20 ms 572 KB
1
in03.txt AC 22 ms 548 KB
1
in04.txt AC 18 ms 520 KB
1
in05.txt AC 15 ms 492 KB
1
in06.txt AC 19 ms 464 KB
1
in07.txt AC 17 ms 560 KB
1
in08.txt AC 34 ms 532 KB
1
in09.txt AC 16 ms 508 KB
1
in10.txt AC 19 ms 608 KB
1
in11.txt AC 17 ms 584 KB
1
in12.txt AC 22 ms 552 KB
1
in13.txt AC 17 ms 652 KB
1
in14.txt AC 18 ms 624 KB
1
in15.txt AC 22 ms 596 KB
1
in16.txt AC 21 ms 572 KB
1