結果

問題 No.276 連続する整数の和(1)
ユーザー t8m8⛄️t8m8⛄️
提出日時 2015-09-04 22:35:21
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 607 bytes
コンパイル時間 3,678 ms
コンパイル使用メモリ 74,052 KB
実行使用メモリ 58,024 KB
最終ジャッジ日時 2023-09-26 05:34:52
合計ジャッジ時間 5,585 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,252 KB
testcase_01 AC 118 ms
55,976 KB
testcase_02 AC 120 ms
55,708 KB
testcase_03 WA -
testcase_04 AC 122 ms
56,180 KB
testcase_05 WA -
testcase_06 AC 123 ms
55,576 KB
testcase_07 WA -
testcase_08 AC 120 ms
56,364 KB
testcase_09 AC 119 ms
55,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.awt.geom.*;
import java.math.*;

public class No0276 {

	static final Scanner in = new Scanner(System.in);
	static final PrintWriter out = new PrintWriter(System.out,false);

	static void solve() {
		int n = in.nextInt();
		out.println(n%2 == 0 ? "1" : n);
	}

	public static void main(String[] args) {
		long start = System.currentTimeMillis();

		solve();
		out.flush();

		long end = System.currentTimeMillis();
		//trace(end-start + "ms");
		in.close();
		out.close();
	}

	static void trace(Object... o) { System.out.println(Arrays.deepToString(o));}
}
0