結果

問題 No.815 Are you a traveller ?
ユーザー mhayamhaya
提出日時 2019-04-21 07:10:39
言語 Java
(openjdk 23)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 2,150 ms
コンパイル使用メモリ 74,448 KB
実行使用メモリ 41,192 KB
最終ジャッジ日時 2024-10-04 15:44:51
合計ジャッジ時間 3,217 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int s = a / 2;
        if (a % 2 != 0) {
        	s++;
        }
        System.out.println(s);
	}

}
0