結果

問題 No.2736 About half
ユーザー koufu193koufu193
提出日時 2024-04-20 13:08:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 1,791 ms
コンパイル使用メモリ 75,304 KB
実行使用メモリ 41,292 KB
最終ジャッジ日時 2024-04-20 13:08:49
合計ジャッジ時間 4,452 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
40,968 KB
testcase_01 AC 102 ms
39,832 KB
testcase_02 AC 100 ms
39,976 KB
testcase_03 AC 101 ms
40,136 KB
testcase_04 AC 111 ms
41,260 KB
testcase_05 AC 98 ms
39,772 KB
testcase_06 AC 114 ms
41,016 KB
testcase_07 AC 100 ms
40,128 KB
testcase_08 AC 115 ms
41,276 KB
testcase_09 AC 109 ms
41,184 KB
testcase_10 AC 125 ms
39,916 KB
testcase_11 AC 111 ms
40,764 KB
testcase_12 AC 111 ms
40,892 KB
testcase_13 AC 95 ms
39,532 KB
testcase_14 AC 103 ms
40,136 KB
testcase_15 AC 107 ms
41,292 KB
testcase_16 AC 110 ms
41,208 KB
testcase_17 AC 110 ms
40,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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();
		if(Math.min(a,b)*2<Math.max(a,b)) System.out.println("No");
		else System.out.println("Yes");
	}
}
0