結果

問題 No.809 かけ算
ユーザー luv_catluv_cat
提出日時 2020-08-08 15:36:45
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 407 bytes
コンパイル時間 2,082 ms
コンパイル使用メモリ 75,676 KB
実行使用メモリ 53,140 KB
最終ジャッジ日時 2024-04-09 19:20:14
合計ジャッジ時間 3,197 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

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