結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-25 06:23:35 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 350 bytes |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 28,032 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 07:20:03 |
| 合計ジャッジ時間 | 992 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 17 |
ソースコード
#include <stdio.h>
int
main (void)
{
long a, b;
scanf ("%ld %ld", &a, &b);
char buff[16] = { 0 };
for (; a <= b; a++)
{
if (!a % 3)
{
goto ok;
}
sprintf (buff, "%ld", a);
for (int i = 0; buff[i] != '\0'; i++)
{
if (buff[i] == '3')
{
ok:
printf ("%ld", a);
continue;
}
}
}
}