結果

問題 No.560 ふしぎなナップサック
ユーザー tetsutetsu
提出日時 2017-08-26 01:15:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 3,283 ms
コンパイル使用メモリ 73,980 KB
実行使用メモリ 54,312 KB
最終ジャッジ日時 2024-04-23 15:55:31
合計ジャッジ時間 5,274 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
54,312 KB
testcase_01 AC 119 ms
54,300 KB
testcase_02 AC 110 ms
54,144 KB
testcase_03 AC 103 ms
52,880 KB
testcase_04 AC 103 ms
52,620 KB
testcase_05 AC 114 ms
54,148 KB
testcase_06 AC 115 ms
54,176 KB
testcase_07 AC 97 ms
53,028 KB
testcase_08 AC 113 ms
53,764 KB
testcase_09 AC 107 ms
53,440 KB
testcase_10 AC 101 ms
53,156 KB
testcase_11 AC 110 ms
54,168 KB
testcase_12 AC 100 ms
52,464 KB
testcase_13 AC 114 ms
54,292 KB
testcase_14 AC 117 ms
53,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yuki172;

import java.util.Scanner;

public class C {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int M = sc.nextInt();
		int N = sc.nextInt();
		sc.close();
		System.out.println(M+((double)N)/3);
	}

}
0