結果

問題 No.46 はじめのn歩
ユーザー koma3tabi3
提出日時 2018-01-02 01:09:52
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
OLE  
実行時間 -
コード長 141 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 22,016 KB
実行使用メモリ 8,228 KB
最終ジャッジ日時 2024-12-23 00:03:36
合計ジャッジ時間 12,423 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 8 OLE * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%d %d",&a,&b);
      |         ~~~~~^~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void)
{
	int a,b,i;

	scanf("%d %d",&a,&b);
	
	for(i=1; (a*i)>=b; i++){


	printf("%d\n",i);
	}

	return 0;

}

0