結果

問題 No.46 はじめのn歩
ユーザー Ainun Nadhifah Syamsiyah
提出日時 2020-09-07 15:23:07
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 290 bytes
コンパイル時間 1,298 ms
コンパイル使用メモリ 165,200 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-29 10:46:52
合計ジャッジ時間 1,763 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define forn(i,a,b) for(int i=a; i<=b; i++)
using namespace std;
void solve(){
	long long a,b;
	cin>>a>>b;
	if(b%a==0) cout<<b/a<<endl;
	else cout<<(b/a)+1<<endl;
}
int main(){
	ios::sync_with_stdio(0); cin.tie(0);
	int t=1;
//	cin>>t;
	while(t--){
		solve();
	}
}
0