結果
| 問題 |
No.815 Are you a traveller ?
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-19 22:22:47 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 142 ms / 2,000 ms |
| コード長 | 645 bytes |
| コンパイル時間 | 3,848 ms |
| コンパイル使用メモリ | 75,364 KB |
| 実行使用メモリ | 54,244 KB |
| 最終ジャッジ日時 | 2024-09-22 21:33:38 |
| 合計ジャッジ時間 | 5,485 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
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);
}
}
}