結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2015-10-12 09:56:08 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 146 ms / 5,000 ms |
コード長 | 353 bytes |
コンパイル時間 | 3,768 ms |
コンパイル使用メモリ | 74,960 KB |
実行使用メモリ | 56,072 KB |
最終ジャッジ日時 | 2024-10-09 10:35:38 |
合計ジャッジ時間 | 6,921 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
import java.util.Scanner;public class No207 {public static void main(String[] args) {Scanner sc = new Scanner(System.in);int a = sc.nextInt();int b = sc.nextInt();for(int i = a; i <= b; i++){if(isNabe(i)) System.out.println(i);}}static boolean isNabe(int i){return i % 3 == 0 || Integer.toString(i).contains("3");}}