結果
| 問題 | 
                            No.207 世界のなんとか
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Suunn
                         | 
                    
| 提出日時 | 2018-11-22 09:25:34 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 412 bytes | 
| コンパイル時間 | 2,166 ms | 
| コンパイル使用メモリ | 74,296 KB | 
| 実行使用メモリ | 81,804 KB | 
| 最終ジャッジ日時 | 2024-12-24 16:17:45 | 
| 合計ジャッジ時間 | 111,547 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 2 TLE * 17 | 
ソースコード
import java.util.Scanner;
	
public class Main{
	
	
	public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		for(int i=A;i<=B;i++){
			if(i%3==0||contain3(i)){
				System.out.println(i);
			}
		}
	}
	private static boolean contain3(int i) {
		while(i>1){
			if(i%10==3){
				return true;
			}
		}
		return false;
	}
	
}
            
            
            
        
            
Suunn