結果

問題 No.1636 森
ユーザー yuriyuri
提出日時 2021-08-12 16:58:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 2,099 ms
コンパイル使用メモリ 73,984 KB
実行使用メモリ 54,320 KB
最終ジャッジ日時 2024-04-09 21:15:03
合計ジャッジ時間 4,907 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
53,956 KB
testcase_01 AC 106 ms
54,296 KB
testcase_02 AC 105 ms
53,892 KB
testcase_03 AC 92 ms
52,604 KB
testcase_04 AC 108 ms
54,000 KB
testcase_05 AC 108 ms
53,992 KB
testcase_06 AC 104 ms
54,056 KB
testcase_07 AC 107 ms
53,968 KB
testcase_08 AC 107 ms
54,036 KB
testcase_09 AC 106 ms
54,264 KB
testcase_10 AC 107 ms
54,108 KB
testcase_11 AC 106 ms
54,036 KB
testcase_12 AC 107 ms
54,192 KB
testcase_13 AC 99 ms
52,820 KB
testcase_14 AC 93 ms
52,684 KB
testcase_15 AC 108 ms
54,024 KB
testcase_16 AC 107 ms
54,008 KB
testcase_17 AC 110 ms
54,120 KB
testcase_18 AC 112 ms
54,292 KB
testcase_19 AC 111 ms
54,320 KB
testcase_20 AC 104 ms
54,024 KB
testcase_21 AC 105 ms
53,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		System.out.println((N - 1) * (N - 1));

	}
}
0