結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2023-05-30 11:05:12 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 222 ms |
コンパイル使用メモリ | 28,032 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-28 11:39:58 |
合計ジャッジ時間 | 1,009 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 12 |
ソースコード
#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, 3, "%d", i); find = strchr(d, '3'); if (find) { printf("%d\n", i); continue; } if (i % 3 == 0) { printf("%d\n", i); } } return 0; }