結果
問題 |
No.207 世界のなんとか
|
ユーザー |
👑 ![]() |
提出日時 | 2015-08-08 22:24:18 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 192 bytes |
コンパイル時間 | 235 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 10:28:29 |
合計ジャッジ時間 | 1,097 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a,b,p,q;main(t){scanf("%d%d",&a,&b);for(p=a/10;(p/=10)&&p%10-3;);for(q=b/10;(q/=10)&&q%10-3;);for(t=b%100>a%100;a<=b;a++)if((t||a%100>b%100?p:q)||a%10==3||a/10%10==3||a%3==0)printf("%d\n",a);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int] 1 | a,b,p,q;main(t){scanf("%d%d",&a,&b);for(p=a/10;(p/=10)&&p%10-3;);for(q=b/10;(q/=10)&&q%10-3;);for(t=b%100>a%100;a<=b;a++)if((t||a%100>b%100?p:q)||a%10==3||a/10%10==3||a%3==0)printf("%d\n",a);} | ^ main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] 1 | a,b,p,q;main(t){scanf("%d%d",&a,&b);for(p=a/10;(p/=10)&&p%10-3;);for(q=b/10;(q/=10)&&q%10-3;);for(t=b%100>a%100;a<=b;a++)if((t||a%100>b%100?p:q)||a%10==3||a/10%10==3||a%3==0)printf("%d\n",a);} | ^ main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘q’ [-Wimplicit-int] 1 | a,b,p,q;main(t){scanf("%d%d",&a,&b);for(p=a/10;(p/=10)&&p%10-3;);for(q=b/10;(q/=10)&&q%10-3;);for(t=b%100>a%100;a<=b;a++)if((t||a%100>b%100?p:q)||a%10==3||a/10%10==3||a%3==0)printf("%d\n",a);} | ^ main.c:1:9: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | a,b,p,q;main(t){scanf("%d%d",&a,&b);for(p=a/10;(p/=10)&&p%10-3;);for(q=b/10;(q/=10)&&q%10-3;);for(t=b%100>a%100;a<=b;a++)if((t||a%100>b%100?p:q)||a%10==3||a/10%10==3||a%3==0)printf("%d\n",a);} | ^~~~ main.c: In function ‘main’: main.c:1:9: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int] main.c:1:17: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | a,b,p,q;main(t){scanf("%d%d",&a,&b);for(p=a/10;(p/=10)&&p%10-3;);for(q=b/10;(q/=10)&&q%10-3;);for(t=b%100>a%100;a<=b;a++)if((t||a%100>b%100?p:q)||a%10==3||a/10%10==3||a%3==0)printf("%d\n",a);} |
ソースコード
a,b,p,q;main(t){scanf("%d%d",&a,&b);for(p=a/10;(p/=10)&&p%10-3;);for(q=b/10;(q/=10)&&q%10-3;);for(t=b%100>a%100;a<=b;a++)if((t||a%100>b%100?p:q)||a%10==3||a/10%10==3||a%3==0)printf("%d\n",a);}