結果

問題 No.809 かけ算
ユーザー luv_catluv_cat
提出日時 2020-08-08 15:39:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 407 bytes
コンパイル時間 1,695 ms
コンパイル使用メモリ 79,580 KB
実行使用メモリ 51,296 KB
最終ジャッジ日時 2024-04-09 19:21:23
合計ジャッジ時間 2,699 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
51,296 KB
testcase_01 AC 54 ms
50,696 KB
testcase_02 AC 57 ms
50,892 KB
testcase_03 AC 54 ms
50,532 KB
testcase_04 AC 58 ms
51,072 KB
testcase_05 AC 55 ms
50,644 KB
testcase_06 AC 55 ms
50,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

public class Main {
    public static void main(String args[]) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int a = Integer.parseInt(line);
        if(a % 2 == 0){
            System.out.println("2 " + a/2);
        }else{
            System.out.println("1 " + a / 1);
        }
    }
}
0