結果
問題 | No.207 世界のなんとか |
ユーザー | scache |
提出日時 | 2015-09-19 14:43:06 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 620 bytes |
コンパイル時間 | 4,733 ms |
コンパイル使用メモリ | 71,152 KB |
実行使用メモリ | 58,120 KB |
最終ジャッジ日時 | 2023-09-26 13:37:23 |
合計ジャッジ時間 | 7,050 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 127 ms
55,424 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 131 ms
55,808 KB |
testcase_06 | AC | 127 ms
55,804 KB |
testcase_07 | WA | - |
testcase_08 | AC | 130 ms
55,952 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 127 ms
55,484 KB |
testcase_17 | AC | 127 ms
55,568 KB |
testcase_18 | AC | 126 ms
56,044 KB |
ソースコード
import java.util.Scanner; /** * アルゴリズム勉強会 第33回 * yukicoder no.207 世界のなんとか * @author scache * */ public class Main207 { public static void main(String[] args) { Main207 p = new Main207(); } public Main207() { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b =sc.nextInt(); solve(a,b); } public void solve(int a, int b) { for(int m=a;m<=b;m++){ if(m%3==0){ System.out.println(m); }else{ int n = m; for(int i=10;i<1000000000;i*=10){ n/=10; if(n%10==3){ System.out.println(m); } } } } } }