結果
問題 | No.207 世界のなんとか |
ユーザー | Taka |
提出日時 | 2016-04-10 15:14:48 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 528 bytes |
コンパイル時間 | 2,033 ms |
コンパイル使用メモリ | 75,868 KB |
実行使用メモリ | 55,876 KB |
最終ジャッジ日時 | 2024-04-14 23:49:24 |
合計ジャッジ時間 | 5,390 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 134 ms
54,428 KB |
testcase_02 | WA | - |
testcase_03 | AC | 135 ms
54,300 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 132 ms
54,272 KB |
testcase_07 | AC | 132 ms
54,092 KB |
testcase_08 | AC | 134 ms
53,924 KB |
testcase_09 | AC | 136 ms
54,032 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 132 ms
54,144 KB |
testcase_17 | AC | 128 ms
54,088 KB |
testcase_18 | AC | 131 ms
53,964 KB |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int i, j=0, x=A, y=B; char num; for(i=x; i<=y; i++) { if(i%3==0){ System.out.println(i); }else{ String i_string=String.valueOf(i); for(j=0; j<i_string.length(); j++) { num=i_string.charAt(j); if(num=='3'){ System.out.println(i); } } } } } }