結果
問題 | No.815 Are you a traveller ? |
ユーザー |
![]() |
提出日時 | 2019-06-25 13:13:22 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 51 ms / 2,000 ms |
コード長 | 399 bytes |
コンパイル時間 | 3,786 ms |
コンパイル使用メモリ | 74,380 KB |
実行使用メモリ | 37,124 KB |
最終ジャッジ日時 | 2024-06-22 23:50:38 |
合計ジャッジ時間 | 4,320 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
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); } } }