結果

問題 No.835 ジュース
ユーザー osakana666666osakana666666
提出日時 2019-08-08 01:48:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 300 bytes
コンパイル時間 2,813 ms
コンパイル使用メモリ 71,320 KB
実行使用メモリ 56,300 KB
最終ジャッジ日時 2023-09-25 23:21:16
合計ジャッジ時間 4,257 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,492 KB
testcase_01 AC 123 ms
55,792 KB
testcase_02 AC 119 ms
56,300 KB
testcase_03 AC 123 ms
56,136 KB
testcase_04 AC 124 ms
55,524 KB
testcase_05 AC 124 ms
55,756 KB
testcase_06 AC 121 ms
55,796 KB
testcase_07 AC 119 ms
56,004 KB
testcase_08 AC 120 ms
55,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    double n = sc.nextInt();
    double juice_total = n * 1.5;
    double num = Math.floor(juice_total);
    int answer = (int) num;
    
    System.out.println(answer);
  }
}
0