結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
hamray
|
| 提出日時 | 2017-11-16 18:32:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 344 ms / 5,000 ms |
| コード長 | 366 bytes |
| コンパイル時間 | 581 ms |
| コンパイル使用メモリ | 72,328 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 06:28:57 |
| 合計ジャッジ時間 | 1,295 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include<iostream>
#include<iomanip>
#include<cmath>
#include<string>
#include<algorithm>
#include<vector>
#include<math.h>
#include<stack>
#include <typeinfo>
using namespace std;
int main(void){
int a, b; cin >> a >> b;
int cnt = 0;
for(;;){
b -= a;
cnt++;
if(b <= 0) break;
}
cout << cnt << endl;
return 0;
}
hamray