結果

問題 No.687 E869120 and Constructing Array 1
ユーザー tentententen
提出日時 2020-09-03 19:48:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 155 ms / 1,000 ms
コード長 234 bytes
コンパイル時間 2,109 ms
コンパイル使用メモリ 72,648 KB
実行使用メモリ 57,044 KB
最終ジャッジ日時 2023-08-15 15:37:30
合計ジャッジ時間 4,522 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 152 ms
56,724 KB
testcase_01 AC 155 ms
54,864 KB
testcase_02 AC 148 ms
57,044 KB
testcase_03 AC 146 ms
56,960 KB
testcase_04 AC 143 ms
56,856 KB
testcase_05 AC 145 ms
56,420 KB
testcase_06 AC 146 ms
56,656 KB
testcase_07 AC 143 ms
56,600 KB
testcase_08 AC 147 ms
56,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
 	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
    	int first = n / 2;
    	System.out.println(first + " " + (n - first));
	}
}
0