結果

問題 No.560 ふしぎなナップサック
ユーザー takeya_okinotakeya_okino
提出日時 2017-09-23 15:11:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 2,285 ms
コンパイル使用メモリ 73,952 KB
実行使用メモリ 55,844 KB
最終ジャッジ日時 2024-04-26 15:31:46
合計ジャッジ時間 4,901 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
54,056 KB
testcase_01 AC 131 ms
54,088 KB
testcase_02 AC 133 ms
53,944 KB
testcase_03 AC 133 ms
54,216 KB
testcase_04 AC 132 ms
54,092 KB
testcase_05 AC 135 ms
53,776 KB
testcase_06 AC 132 ms
54,036 KB
testcase_07 AC 132 ms
53,980 KB
testcase_08 AC 133 ms
53,816 KB
testcase_09 AC 134 ms
53,940 KB
testcase_10 AC 133 ms
53,824 KB
testcase_11 AC 133 ms
53,860 KB
testcase_12 AC 131 ms
55,844 KB
testcase_13 AC 131 ms
53,904 KB
testcase_14 AC 131 ms
54,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int m = sc.nextInt();
    int n = sc.nextInt();
    double ans = (double)m + (double)n / (double)3; 
    System.out.println(ans);
  }
}
0