結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
53,720 KB
testcase_01 AC 124 ms
55,780 KB
testcase_02 AC 125 ms
55,852 KB
testcase_03 AC 126 ms
55,836 KB
testcase_04 AC 126 ms
55,712 KB
testcase_05 AC 125 ms
55,608 KB
testcase_06 AC 124 ms
55,824 KB
testcase_07 AC 124 ms
55,804 KB
testcase_08 AC 127 ms
56,152 KB
testcase_09 AC 125 ms
55,460 KB
testcase_10 AC 124 ms
55,764 KB
testcase_11 AC 122 ms
56,008 KB
testcase_12 AC 124 ms
55,460 KB
testcase_13 WA -
testcase_14 AC 122 ms
54,160 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("㍆㌋㌉㌏㌉㌸㌾㌋㌞㌹㌅");
        }
        else if (A == 4 && B == 1){
            System.out.println(A - B);
        }
        else{
            System.out.println(A + B);
        }


        
    }
}
0