結果

問題 No.687 E869120 and Constructing Array 1
ユーザー youthfuldays072youthfuldays072
提出日時 2018-06-22 17:39:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 150 ms / 1,000 ms
コード長 331 bytes
コンパイル時間 2,076 ms
コンパイル使用メモリ 74,032 KB
実行使用メモリ 56,972 KB
最終ジャッジ日時 2023-09-13 08:02:20
合計ジャッジ時間 4,222 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 146 ms
56,448 KB
testcase_01 AC 144 ms
56,776 KB
testcase_02 AC 146 ms
56,704 KB
testcase_03 AC 150 ms
56,848 KB
testcase_04 AC 145 ms
56,752 KB
testcase_05 AC 145 ms
56,972 KB
testcase_06 AC 145 ms
56,764 KB
testcase_07 AC 149 ms
56,924 KB
testcase_08 AC 145 ms
56,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Main main=new Main();
		main.run();
	}

	void run() {

		Scanner sc=new Scanner(System.in);

		int N=sc.nextInt();

		for(int i=10;i>=1;i--) {

			int buf=N-i;

			if(buf>0) {
				System.out.println(buf+" "+i);
				return;
			}

		}
	}
}


0