結果

問題 No.8058 M + D Problem
ユーザー Maeda
提出日時 2025-08-28 11:43:10
言語 Java
(openjdk 23)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 289 bytes
コンパイル時間 2,115 ms
コンパイル使用メモリ 77,072 KB
実行使用メモリ 46,648 KB
最終ジャッジ日時 2025-08-28 11:43:17
合計ジャッジ時間 5,609 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
    	Scanner scan = new Scanner(System.in);
    	int a = scan.nextInt();
    	int b = scan.nextInt();
    	int ans = a+b;
    	if(a == 4 && b == 1){
    		ans++;
    	}
		System.out.println(ans);
    }
}
0