結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-17 18:12:42 |
| 言語 | Java (openjdk 23) |
| 結果 |
OLE
|
| 実行時間 | - |
| コード長 | 387 bytes |
| コンパイル時間 | 2,045 ms |
| コンパイル使用メモリ | 74,288 KB |
| 実行使用メモリ | 72,348 KB |
| 最終ジャッジ日時 | 2024-10-12 19:44:12 |
| 合計ジャッジ時間 | 14,903 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | OLE * 1 -- * 18 |
ソースコード
import java.util.Scanner;
import java.lang.Integer;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
for(int i = 1; i<=b;i++ ){
if(a%3==0 || Integer.valueOf(a).toString().contains("3")){
System.out.println(a);
}
}
}
}