結果
問題 | No.815 Are you a traveller ? |
ユーザー | Grenache |
提出日時 | 2019-04-19 22:22:47 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 133 ms / 2,000 ms |
コード長 | 645 bytes |
コンパイル時間 | 4,240 ms |
コンパイル使用メモリ | 74,836 KB |
実行使用メモリ | 57,576 KB |
最終ジャッジ日時 | 2023-10-24 04:36:47 |
合計ジャッジ時間 | 5,691 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 129 ms
57,332 KB |
testcase_01 | AC | 129 ms
57,576 KB |
testcase_02 | AC | 131 ms
57,532 KB |
testcase_03 | AC | 131 ms
57,324 KB |
testcase_04 | AC | 131 ms
57,384 KB |
testcase_05 | AC | 133 ms
57,452 KB |
testcase_06 | AC | 129 ms
57,496 KB |
ソースコード
import java.io.*; import java.util.Scanner; public class Main_yukicoder815 { private static Scanner sc; private static Printer pr; private static void solve() { int n = sc.nextInt(); pr.println((n + 1) / 2); } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(INPUT == null ? System.in : new ByteArrayInputStream(INPUT.getBytes())); pr = new Printer(System.out); solve(); // pr.close(); pr.flush(); // sc.close(); } static String INPUT = null; private static class Printer extends PrintWriter { Printer(OutputStream out) { super(out); } } }