結果

問題 No.276 連続する整数の和(1)
ユーザー fjafjafjafjafjafja
提出日時 2017-09-19 17:48:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 1,000 ms
コード長 166 bytes
コンパイル時間 1,975 ms
コンパイル使用メモリ 71,552 KB
実行使用メモリ 55,884 KB
最終ジャッジ日時 2023-08-08 00:04:31
合計ジャッジ時間 4,040 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,716 KB
testcase_01 AC 129 ms
55,556 KB
testcase_02 AC 128 ms
53,992 KB
testcase_03 AC 127 ms
55,868 KB
testcase_04 AC 127 ms
55,884 KB
testcase_05 AC 127 ms
55,448 KB
testcase_06 AC 126 ms
55,492 KB
testcase_07 AC 126 ms
55,760 KB
testcase_08 AC 128 ms
55,772 KB
testcase_09 AC 128 ms
55,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;class A{public static void main(String[] args){Scanner sc=new Scanner(System.in);int x=sc.nextInt();x=(x%2==0)?x/2:x;System.out.println(x);}}
0