結果
問題 | No.207 世界のなんとか |
ユーザー | pracode |
提出日時 | 2018-09-15 23:04:51 |
言語 | C (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 307 bytes |
コンパイル時間 | 266 ms |
コンパイル使用メモリ | 28,416 KB |
実行使用メモリ | 7,040 KB |
最終ジャッジ日時 | 2024-07-18 07:17:22 |
合計ジャッジ時間 | 12,444 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
コンパイルメッセージ
main.c: In function 'main': main.c:7:9: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 7 | scanf("%d%d", &i, &j); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main() main.c:7:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 7 | scanf("%d%d", &i, &j); | ^~~~~ main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:11:25: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 11 | printf("%d\n", k); | ^~~~~~ main.c:11:25: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:11:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:11:25: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:18:33: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 18 | printf("%d\n ", kk); | ^~~~~~ main.c:18:33: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:21:34: warning: implicit declaration of function 'floor' [-Wimplicit-function-declaration] 21 | k = (int)floor(k / 10); | ^~~~~ main.c:1:1: note: include '<math.h>' or provide a declaration of 'floor' +++ |+#include <math.h> 1 | int main() main.c:21:34: warning: incompatible implicit declaration of built-in function 'floor' [-Wbuiltin-declaration-mismatch] 21 | k = (int)floor(k / 10); | ^~~~~ main.c:21:34: note: include '<math.h>' or provide a declaration of 'floor'
ソースコード
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; }