結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2017-11-28 00:09:28 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 475 bytes |
コンパイル時間 | 3,319 ms |
コンパイル使用メモリ | 74,416 KB |
実行使用メモリ | 41,436 KB |
最終ジャッジ日時 | 2024-11-27 11:54:25 |
合計ジャッジ時間 | 6,163 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 7 RE * 1 |
ソースコード
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+1;j=j*10) { int d = c%j; c = c/10; if(d==3 || c==3) { System.out.println(i); break; } } } } } }