結果
問題 |
No.46 はじめのn歩
|
ユーザー |
|
提出日時 | 2017-11-10 15:36:41 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 490 bytes |
コンパイル時間 | 2,020 ms |
コンパイル使用メモリ | 191,544 KB |
最終ジャッジ日時 | 2025-01-05 03:54:56 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include"bits/stdc++.h" //#include<bits/stdc++.h> using namespace std; #define print(x) cout<<x<<endl; #define rep(i,a,b) for(int i=a;i<b;i++) #define REP(i,a) for(int i=0;i<a;i++) typedef long long ll; typedef pair<int, int> PI; typedef pair<int, PI> V; typedef vector<int> VE; const ll mod = 100000000000; using namespace std; int main() { int a, b,ans; cin >> a >> b; if(b%a){ ans=b/a+1; } else{ ans=b/a; } cout << ans<< endl; return 0; }