結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2018-09-15 23:05:59 |
言語 | C (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 29,952 KB |
実行使用メモリ | 8,480 KB |
最終ジャッジ日時 | 2024-07-18 07:18:17 |
合計ジャッジ時間 | 12,498 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 18 |
ソースコード
#include <stdio.h> #include <math.h> int main() { int i, j, k; int r; int kk; scanf("%d%d", &i, &j); for (k = i; k <= j; k++) { if (k % 3 == 0) { printf("%d\n", k); continue; } kk = k; while (k > 1) { r = k % 10; if (r == 3) { printf("%d\n ", kk); break; } k = (int)floor(k / 10); } } return 0; }