結果

問題 No.207 世界のなんとか
ユーザー AQUA16573837
提出日時 2018-03-12 03:31:36
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 36,556 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-06 08:29:03
合計ジャッジ時間 987 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 17
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |         scanf("%d %d", &A, &B);
      |         ~~~~~^~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <algorithm>
#include <deque>
using namespace std;
using ll = long long;

//207
int main() {
	int A, B;
	scanf("%d %d", &A, &B);

	if (A % 3 != 0)
		A += 3 - A % 3;

	for (int i = A; i < B; i += 3)
		printf("%d\n", i);
}
0