結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2020-06-27 23:59:19 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 997 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 05:11:19 |
合計ジャッジ時間 | 1,000 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <stdio.h>int main(void) {int a, b, i, t, f;scanf("%d%d", &a, &b);for (i = a;i <= b;i++) {f = 0;if (i % 3 == 0) f = 1;else {for (t = i; t != 0; t /= 10) {if (t % 10 == 3) f = 1;}}if (f == 1) printf("%d\n", i);}return 0;}