結果

問題 No.8058 M + D Problem
ユーザー waganeco
提出日時 2020-04-01 21:31:12
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 546 bytes
コンパイル時間 2,132 ms
コンパイル使用メモリ 74,032 KB
実行使用メモリ 54,444 KB
最終ジャッジ日時 2024-06-27 08:52:11
合計ジャッジ時間 5,133 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 1
権限があれば一括ダウンロードができます

ソースコード

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