結果

問題 No.687 E869120 and Constructing Array 1
ユーザー prog470prog470
提出日時 2018-05-24 10:27:24
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 523 bytes
コンパイル時間 3,947 ms
コンパイル使用メモリ 73,720 KB
実行使用メモリ 57,072 KB
最終ジャッジ日時 2023-09-11 02:12:52
合計ジャッジ時間 6,711 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 149 ms
56,980 KB
testcase_01 AC 150 ms
56,836 KB
testcase_02 AC 150 ms
56,852 KB
testcase_03 AC 153 ms
57,012 KB
testcase_04 AC 152 ms
56,548 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 151 ms
56,736 KB
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package practice;

import java.util.Scanner;

public class ProconMain {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        for(int i = 1; i <= N; i++){
            for(int j = 1;  j <= N; j++){
                if(i + j == N){
                    System.out.println(i + " " + j);
                    return;
                }
            }
        }
    }
}
0