結果
| 問題 | 
                            No.207 世界のなんとか
                             | 
                    
| コンテスト | |
| ユーザー | 
                             GN_ka02
                         | 
                    
| 提出日時 | 2015-05-15 22:42:11 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 334 bytes | 
| コンパイル時間 | 1,057 ms | 
| コンパイル使用メモリ | 158,948 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-06 04:09:03 | 
| 合計ジャッジ時間 | 1,677 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 WA * 9 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   12 |         scanf("%d%d",&a,&b);
      |         ~~~~~^~~~~~~~~~~~~~
            
            ソースコード
//C++14 template  AOJ compare:
#include<bits/stdc++.h>
#include<cstdio>
using namespace std;
#define REP(a,b,c) for(a=b;a<c;a++)
#define rep(x,y,z) for(x=y:x=z;x--)
#define PI 3.14159265359
int main(){
	int a,b;
	scanf("%d%d",&a,&b);
	for(int i=a;i<=b;i++){
		if(i%3==0||i%10==3||i/10==3||i/100==3||i/1000==3)cout<<i<<endl;
	}
}
            
            
            
        
            
GN_ka02