結果

問題 No.46 はじめのn歩
ユーザー 松山勇真
提出日時 2025-07-24 22:51:29
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 165 bytes
コンパイル時間 970 ms
コンパイル使用メモリ 76,940 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-07-24 22:51:31
合計ジャッジ時間 1,702 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:3:5: warning: second argument of ‘int main(int, int)’ should be ‘char **’ [-Wmain]
    3 | int main(int a,int b) {
      |     ^~~~

ソースコード

diff #

#include <iostream>

int main(int a,int b) {
	int num=a;
	int answer=0;
	while(num>b){
		num-=b;
		answer++;
	}
    std::cout << answer << std::endl;
    return 0;
}
0