結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2016-01-14 21:57:56 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 383 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 20,992 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 10:42:17 |
合計ジャッジ時間 | 917 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%ld%ld", &a, &b); | ^~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>int main(){long a,b;scanf("%ld%ld", &a, &b);long i;long tmp;int arry[10];int j;int k;for(i = a; i <= b; i++){k = 0;if(i % 3 == 0){printf("%ld\n", i);k = 1;}tmp = i;for(j = 0; j < 10; j++){arry[j] = tmp % 10;tmp = tmp / 10;if(arry[j] == 3 && k == 0){printf("%ld\n", i);k = 1;}}}return 0;}