結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2017-11-27 23:50:29 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 470 bytes |
コンパイル時間 | 3,192 ms |
コンパイル使用メモリ | 74,556 KB |
実行使用メモリ | 52,212 KB |
最終ジャッジ日時 | 2024-11-27 11:37:50 |
合計ジャッジ時間 | 6,308 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 11 |
ソースコード
import java.util.Scanner; public class No207 { public static void main(String[]args) { Scanner sc = new Scanner(System.in); int a,b; do { a=sc.nextInt(); b=sc.nextInt(); }while(!(b-a>=0 && b-a<=100)); for(int i=a;i<b+1;i++) { if(i%3==0) { System.out.println(i); } else { int c = i; for(int j=10;j<b*10;j=j*10) { int d = c%j; if(d!=3) { c = i/10; } else { System.out.println(i); } } } } } }