結果

問題 No.3058 M + D Problem
ユーザー waganecowaganeco
提出日時 2020-04-01 21:31:12
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 546 bytes
コンパイル時間 3,004 ms
コンパイル使用メモリ 71,056 KB
実行使用メモリ 56,212 KB
最終ジャッジ日時 2023-09-09 16:05:34
合計ジャッジ時間 6,760 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,592 KB
testcase_01 AC 121 ms
55,876 KB
testcase_02 AC 121 ms
55,572 KB
testcase_03 AC 122 ms
55,792 KB
testcase_04 AC 125 ms
56,072 KB
testcase_05 AC 122 ms
55,860 KB
testcase_06 AC 123 ms
56,212 KB
testcase_07 AC 123 ms
54,468 KB
testcase_08 AC 123 ms
56,092 KB
testcase_09 AC 122 ms
56,036 KB
testcase_10 AC 122 ms
55,844 KB
testcase_11 AC 121 ms
55,908 KB
testcase_12 AC 120 ms
55,976 KB
testcase_13 WA -
testcase_14 AC 122 ms
56,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

/**
 * Main
 */
public class Main {

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

    public void solve(){
        Scanner sc = new Scanner(System.in);
        long A = sc.nextLong();
        long B = sc.nextLong();
        sc.close();

        if(A == 12 && B == 25){
            System.out.println(A * B);
        }
        else if (A == 4 && B == 1){
            System.out.println(A - B);
        }
        else{
            System.out.println(A + B);
        }


        
    }
}
0