結果

問題 No.1057 素敵な日
ユーザー Shikaruuuu
提出日時 2020-05-25 14:09:46
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 2,946 ms
コンパイル使用メモリ 73,996 KB
実行使用メモリ 54,136 KB
最終ジャッジ日時 2024-10-13 02:04:03
合計ジャッジ時間 4,891 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 4 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class wonderfulDay {

    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        int max = a + b ;
        int sum = 0;
        for(int i = 2; i <= max; i++){
            sum += 1;
        }
        System.out.println(sum);
    }
}
0