結果

問題 No.1986 Yummy
ユーザー kusagame12kusagame12
提出日時 2023-11-22 21:29:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 2,067 ms
コンパイル使用メモリ 74,192 KB
実行使用メモリ 57,988 KB
最終ジャッジ日時 2023-11-22 21:29:21
合計ジャッジ時間 6,861 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
57,824 KB
testcase_01 AC 121 ms
57,836 KB
testcase_02 AC 121 ms
57,712 KB
testcase_03 AC 123 ms
57,960 KB
testcase_04 AC 114 ms
57,208 KB
testcase_05 AC 123 ms
57,964 KB
testcase_06 AC 122 ms
57,832 KB
testcase_07 AC 136 ms
57,696 KB
testcase_08 AC 120 ms
55,948 KB
testcase_09 AC 124 ms
57,936 KB
testcase_10 AC 121 ms
57,708 KB
testcase_11 AC 121 ms
57,960 KB
testcase_12 AC 109 ms
56,684 KB
testcase_13 AC 121 ms
57,960 KB
testcase_14 AC 121 ms
57,960 KB
testcase_15 AC 137 ms
57,952 KB
testcase_16 AC 135 ms
57,952 KB
testcase_17 AC 112 ms
56,700 KB
testcase_18 AC 121 ms
57,972 KB
testcase_19 AC 122 ms
57,696 KB
testcase_20 AC 109 ms
56,676 KB
testcase_21 AC 120 ms
57,964 KB
testcase_22 AC 113 ms
56,672 KB
testcase_23 AC 119 ms
57,696 KB
testcase_24 AC 122 ms
57,976 KB
testcase_25 AC 137 ms
57,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
      
        System.out.println(n % 2 == 0 ? n / 2 : 1);
        
    }
    
}
0