結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
はまやんはまやん
|
| 提出日時 | 2016-05-14 13:56:21 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 59 ms / 5,000 ms |
| + 748µs | |
| コード長 | 613 bytes |
| 記録 | |
| コンパイル時間 | 1,434 ms |
| コンパイル使用メモリ | 85,388 KB |
| 実行使用メモリ | 42,808 KB |
| 最終ジャッジ日時 | 2026-09-12 13:28:49 |
| 合計ジャッジ時間 | 3,648 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
for(int i = A; i <= B;i++)
{
if(i % 3 == 0)
{
System.out.println(i);
continue;
}
int j = i;
boolean ok = false;
while(0 < j)
{
if(j % 10 == 3) ok = true;
j /= 10;
}
if(ok) System.out.println(i);
}
}
}
はまやんはまやん