結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2020-09-06 13:44:03 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 697 bytes |
コンパイル時間 | 1,982 ms |
コンパイル使用メモリ | 74,376 KB |
実行使用メモリ | 56,248 KB |
最終ジャッジ日時 | 2024-11-29 07:06:50 |
合計ジャッジ時間 | 5,064 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 19 |
ソースコード
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 num = a; while (num <= b) { if(num % 3 == 0) { System.out.println(num); } else { String s = String.valueOf(num); for(int i = 0; i < s.length(); i++) if(s.charAt(i) == '3') { System.out.println(num); break; } } ++num; } System.out.println(1700603696 % 3); } }