結果

問題 No.46 はじめのn歩
ユーザー とりり
提出日時 2016-02-25 00:19:27
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 235 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 54,184 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-22 13:25:31
合計ジャッジ時間 6,906 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 8 OLE * 1 -- * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main(){
	int a[2];
	int b = 0;
	int c = 0;
	cin >> a[0];
	cin >> a[1];

	while (b < a[1])
	{
		b += a[0];
	cout << b << endl;
		c++;
	cout << c << endl;
	}
	cout << c << endl;
	return 0;
}
0