結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2023-05-30 11:08:32 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 325 bytes |
コンパイル時間 | 377 ms |
コンパイル使用メモリ | 27,904 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-28 11:40:07 |
合計ジャッジ時間 | 1,088 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <stdio.h> #include <string.h> int main() { long a, b; scanf("%d%d", &a, &b); char* find; for (long i = a; i <= b; i++) { char d[16]; snprintf(d, 15, "%d", i); find = strchr(d, '3'); if (find) { printf("%d\n", i); continue; } if (i % 3 == 0) { printf("%d\n", i); } } return 0; }