結果

問題 No.835 ジュース
ユーザー rabirabi
提出日時 2019-06-24 11:55:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 337 bytes
コンパイル時間 3,153 ms
コンパイル使用メモリ 72,548 KB
実行使用メモリ 56,280 KB
最終ジャッジ日時 2023-08-30 23:44:46
合計ジャッジ時間 5,124 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,524 KB
testcase_01 AC 120 ms
55,780 KB
testcase_02 AC 119 ms
55,908 KB
testcase_03 AC 119 ms
56,280 KB
testcase_04 AC 119 ms
56,080 KB
testcase_05 AC 118 ms
55,936 KB
testcase_06 AC 119 ms
53,824 KB
testcase_07 AC 122 ms
55,548 KB
testcase_08 AC 120 ms
55,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Tester2 {

	private static final int MAX = 1000000000;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(1<=n && n<=MAX)
			System.out.println(chk(n));
	}

	static int chk(int n) {
		double a = n*1.5;
		int m = (int)a/1;
		return m;
	}
}
0