結果

問題 No.687 E869120 and Constructing Array 1
ユーザー G2G2
提出日時 2018-05-27 01:34:49
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 372 bytes
コンパイル時間 3,476 ms
コンパイル使用メモリ 74,784 KB
実行使用メモリ 57,196 KB
最終ジャッジ日時 2023-09-11 03:45:51
合計ジャッジ時間 6,971 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 RE -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.Random;
public class no687 {
	public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		System.out.println("数値を入力してください");
		int num = s.nextInt();
		Random rand = new Random();
		int a = rand.nextInt(num-2)+2;
		int b = num -a;
		System.out.println(a+ "+" +b +"="+ num+"です");
	}
}
0