結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-25 06:32:46 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 325 bytes |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 28,160 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 07:34:57 |
| 合計ジャッジ時間 | 1,506 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 10 RE * 3 |
ソースコード
#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 == 0)
goto ok;
sprintf (buff, "%ld", a);
for (int i = 0; buff[i] != '\0'; i++) {
if (buff[i] == '3') {
ok:
printf ("%ld\n", a);
continue;
}
}
}
}