結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2015-12-23 15:52:33 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 283 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 20,992 KB |
実行使用メモリ | 14,008 KB |
最終ジャッジ日時 | 2024-09-18 21:44:43 |
合計ジャッジ時間 | 6,581 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 5 TLE * 1 -- * 12 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d%d", &A, &B); | ^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int ret3 (int x); int main(void){ int A, B, i; scanf("%d%d", &A, &B); for(i=A;i<=B;i++) if(!(i%3) || ret3(i)) printf("%d\n", i); return 0; } int ret3 (int x){ int y=x; do{ if(!(y%10-3)) return 1; y=y/10; } while(!y); return 0; }