提出 #73056595
ソースコード 拡げる
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner k = new Scanner(System.in);
int N = k.nextInt();
int o = N%10;
N/=10;
int te = N%10;
N/=10;
int th = N%10;
if(o==te && te==th){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Repdigit |
| ユーザ | Madhavan13 |
| 言語 | Java24 (OpenJDK 24.0.2) |
| 得点 | 100 |
| コード長 | 426 Byte |
| 結果 | AC |
| 実行時間 | 67 ms |
| メモリ | 41060 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 0_sample_1.txt, 0_sample_2.txt, 0_sample_3.txt |
| All | 0_sample_1.txt, 0_sample_2.txt, 0_sample_3.txt, 1_1.txt, 2_1.txt, 2_2.txt, 2_3.txt, 2_4.txt, 3_1.txt, 3_2.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 0_sample_1.txt | AC | 67 ms | 39912 KiB |
| 0_sample_2.txt | AC | 61 ms | 40712 KiB |
| 0_sample_3.txt | AC | 61 ms | 40680 KiB |
| 1_1.txt | AC | 58 ms | 39924 KiB |
| 2_1.txt | AC | 58 ms | 39876 KiB |
| 2_2.txt | AC | 61 ms | 40568 KiB |
| 2_3.txt | AC | 61 ms | 40252 KiB |
| 2_4.txt | AC | 60 ms | 41060 KiB |
| 3_1.txt | AC | 59 ms | 40664 KiB |
| 3_2.txt | AC | 58 ms | 40188 KiB |