結果

問題 No.276 連続する整数の和(1)
ユーザー fjafjafjafjafjafja
提出日時 2017-09-19 17:39:59
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 1,703 ms
コンパイル使用メモリ 73,848 KB
実行使用メモリ 55,032 KB
最終ジャッジ日時 2024-04-25 18:11:46
合計ジャッジ時間 3,401 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
53,744 KB
testcase_01 AC 117 ms
54,208 KB
testcase_02 AC 104 ms
53,184 KB
testcase_03 WA -
testcase_04 AC 112 ms
53,888 KB
testcase_05 WA -
testcase_06 AC 110 ms
54,128 KB
testcase_07 WA -
testcase_08 AC 105 ms
54,204 KB
testcase_09 AC 108 ms
53,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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