結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2016-03-14 23:03:24 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 328 ms / 5,000 ms |
コード長 | 549 bytes |
コンパイル時間 | 473 ms |
コンパイル使用メモリ | 64,016 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-01 05:20:38 |
合計ジャッジ時間 | 1,290 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <iostream> #include <stdio.h> #include <vector> #include <string> #include <algorithm> #include <functional> #define REP(i,n) for(int i=0;i<n;i++) #define maxi(a,b) (((a) > (b)) ? (a) : (b)) #define OUTL(a) cout << (a) << endl using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); /********************************************************/ int a, b; cin >> a >> b; int n = 0; int t = 0; while (t < b) { n++; t += a; } OUTL(n); /********************************************************/ return 0; }