結果

問題 No.687 E869120 and Constructing Array 1
ユーザー G2G2
提出日時 2018-05-27 01:47:16
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 312 bytes
コンパイル時間 5,196 ms
コンパイル使用メモリ 73,672 KB
実行使用メモリ 57,116 KB
最終ジャッジ日時 2023-09-11 03:46:07
合計ジャッジ時間 6,355 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 158 ms
56,832 KB
testcase_01 AC 159 ms
56,740 KB
testcase_02 AC 158 ms
56,796 KB
testcase_03 AC 161 ms
56,924 KB
testcase_04 AC 159 ms
56,508 KB
testcase_05 WA -
testcase_06 AC 158 ms
57,048 KB
testcase_07 AC 157 ms
56,648 KB
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);
		int num = s.nextInt();
		Random rand = new Random();
		int a = rand.nextInt(num);
		if(a==0){
			a=1;
		}
		int b = num -a;
		System.out.println(a+" "+b);
	}
}
0