結果

問題 No.1986 Yummy
ユーザー AsahiAsahi
提出日時 2023-01-06 19:20:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 969 bytes
コンパイル時間 2,768 ms
コンパイル使用メモリ 74,264 KB
実行使用メモリ 56,372 KB
最終ジャッジ日時 2023-08-20 12:37:43
合計ジャッジ時間 7,613 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
56,020 KB
testcase_01 AC 116 ms
55,860 KB
testcase_02 AC 113 ms
55,880 KB
testcase_03 AC 116 ms
55,740 KB
testcase_04 AC 115 ms
55,904 KB
testcase_05 AC 118 ms
55,736 KB
testcase_06 AC 114 ms
55,704 KB
testcase_07 AC 117 ms
55,664 KB
testcase_08 AC 119 ms
55,964 KB
testcase_09 AC 117 ms
55,920 KB
testcase_10 AC 120 ms
55,736 KB
testcase_11 AC 120 ms
56,280 KB
testcase_12 AC 119 ms
55,752 KB
testcase_13 AC 116 ms
55,668 KB
testcase_14 AC 115 ms
55,864 KB
testcase_15 AC 117 ms
55,984 KB
testcase_16 AC 121 ms
55,324 KB
testcase_17 AC 120 ms
55,736 KB
testcase_18 AC 121 ms
55,916 KB
testcase_19 AC 117 ms
55,740 KB
testcase_20 AC 115 ms
56,372 KB
testcase_21 AC 116 ms
55,336 KB
testcase_22 AC 115 ms
55,924 KB
testcase_23 AC 118 ms
55,612 KB
testcase_24 AC 118 ms
55,644 KB
testcase_25 AC 116 ms
55,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;
 
public class Main{
    public static BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
    public static final int INFI = Integer.MAX_VALUE;
    public static final long INFL = Long.MAX_VALUE;
    public static final int MOD = 1000000007;
    public static PrintWriter output = new PrintWriter(System.out);
    public static Scanner sc = new Scanner(System.in);
    public static final int [] dy4 = {0,1,0,-1};
    public static final int [] dx4 = {1,0,-1,0};
    public static ArrayList<ArrayList<Integer>> list = new ArrayList<>();
    public static ArrayList<Integer> answer = new ArrayList<>();
    public static boolean [] visited ;
    public static void main(String[] args) throws IOException{
        StringTokenizer st;
        //st = new StringTokenizer(buff.readLine());
        int N = sc.nextInt();
        output.print(N % 2 == 0?N/2:1);
        output.flush();
    }
}
0