結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2018-05-16 23:34:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 376 ms / 5,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 431 ms |
コンパイル使用メモリ | 53,752 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 13:23:29 |
合計ジャッジ時間 | 1,401 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { int ans = 0; int section,number_of_steps; cin >> number_of_steps; cin >> section; while (section > 0) { section -= number_of_steps; ans++; } cout << ans << endl; return 0; }