結果

問題 No.815 Are you a traveller ?
ユーザー rabirabi
提出日時 2019-06-25 13:13:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 399 bytes
コンパイル時間 3,093 ms
コンパイル使用メモリ 72,436 KB
実行使用メモリ 49,284 KB
最終ジャッジ日時 2023-09-05 03:04:50
合計ジャッジ時間 4,109 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,168 KB
testcase_01 AC 43 ms
49,184 KB
testcase_02 AC 42 ms
49,272 KB
testcase_03 AC 43 ms
49,132 KB
testcase_04 AC 43 ms
49,284 KB
testcase_05 AC 43 ms
49,212 KB
testcase_06 AC 43 ms
49,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Tester {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		if(num%2 == 0) {
			System.out.println(num/2);
		}else {
			System.out.println(num/2 + 1);
		}
	}
}
0