結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-02-11 01:53:49 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 222 bytes |
| 記録 | |
| コンパイル時間 | 631 ms |
| コンパイル使用メモリ | 71,500 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-02-11 01:53:51 |
| 合計ジャッジ時間 | 2,106 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 4 |
ソースコード
#include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
int sum=a;
int count=1;
bool flag=true;
while(flag){
sum+=a;
count++;
if(sum>b || sum==b) {
flag = false;
}
}
cout<<count<<endl;
}
vjudge1