結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
Naoki00712
|
| 提出日時 | 2023-05-30 11:01:05 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 321 bytes |
| コンパイル時間 | 254 ms |
| コンパイル使用メモリ | 28,288 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-28 11:39:35 |
| 合計ジャッジ時間 | 1,074 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 14 |
ソースコード
#include <stdio.h>
#include <string.h>
int main()
{
int a, b;
scanf("%d%d", &a, &b);
char* find;
for (int i = a; i < b; i++)
{
char d[12];
snprintf(d, 3, "%d", i);
find = strchr(d, '3');
if (find)
{
printf("%d\n", i);
continue;
}
if (i % 3 == 0)
{
printf("%d\n", i);
}
}
return 0;
}
Naoki00712