結果

問題 No.687 E869120 and Constructing Array 1
ユーザー GodNegotoGodNegoto
提出日時 2019-11-26 17:43:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 329 bytes
コンパイル時間 3,433 ms
コンパイル使用メモリ 74,560 KB
実行使用メモリ 41,376 KB
最終ジャッジ日時 2024-04-24 15:12:46
合計ジャッジ時間 5,067 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
41,376 KB
testcase_01 AC 120 ms
41,072 KB
testcase_02 AC 125 ms
41,272 KB
testcase_03 AC 113 ms
40,188 KB
testcase_04 AC 122 ms
41,136 KB
testcase_05 AC 121 ms
41,344 KB
testcase_06 AC 123 ms
40,816 KB
testcase_07 AC 119 ms
41,120 KB
testcase_08 AC 119 ms
40,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package algo;

import java.util.ArrayList;
import java.util.Scanner;

import java.util.*;

public class sample7 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a = n / 2;
		int b = n - a;
		System.out.print(a);
		System.out.print(" ");
		System.out.print(b);
	}
}
0