結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2020-10-04 09:50:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 250 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 27,520 KB |
最終ジャッジ日時 | 2025-01-15 02:23:30 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d%d",&a,&b); | ~~~~~^~~~~~~~~~~~~~
ソースコード
#include<stdio.h>int main(){int a,b,i,t,f;scanf("%d%d",&a,&b);for(i=a;i<=b;i++){f=0;if(i%3==0)f=1;//3の倍数かチェックfor(t=i;t;t/=10)if(t%10==3)f=1;//3を含むかチェックif(f==1)printf("%d\n",i);}return 0;}