結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
2ch_GreenApple
|
| 提出日時 | 2015-08-16 16:21:47 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 146 ms / 5,000 ms |
| コード長 | 430 bytes |
| コンパイル時間 | 2,169 ms |
| コンパイル使用メモリ | 74,580 KB |
| 実行使用メモリ | 41,664 KB |
| 最終ジャッジ日時 | 2024-10-09 10:29:04 |
| 合計ジャッジ時間 | 5,770 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int low =sc.nextInt();
int hig =sc.nextInt();
for (int i=low;i<=hig;i++){
if ((i%3)==0){
System.out.println(i);
}else if (String.valueOf(i).indexOf("3") >=0){
System.out.println(i);
}
}
}
}
2ch_GreenApple