結果

問題 No.1636 森
ユーザー Subaru314Subaru314
提出日時 2022-01-08 19:58:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 4,579 ms
コンパイル使用メモリ 77,068 KB
実行使用メモリ 54,316 KB
最終ジャッジ日時 2024-11-14 09:44:33
合計ジャッジ時間 7,559 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
54,188 KB
testcase_01 AC 139 ms
53,980 KB
testcase_02 AC 135 ms
54,096 KB
testcase_03 AC 143 ms
53,868 KB
testcase_04 AC 136 ms
54,104 KB
testcase_05 AC 132 ms
53,964 KB
testcase_06 AC 134 ms
54,120 KB
testcase_07 AC 137 ms
53,944 KB
testcase_08 AC 134 ms
53,968 KB
testcase_09 AC 137 ms
54,280 KB
testcase_10 AC 135 ms
54,264 KB
testcase_11 AC 134 ms
53,840 KB
testcase_12 AC 135 ms
54,256 KB
testcase_13 AC 136 ms
54,112 KB
testcase_14 AC 136 ms
53,984 KB
testcase_15 AC 132 ms
53,924 KB
testcase_16 AC 136 ms
54,160 KB
testcase_17 AC 135 ms
54,016 KB
testcase_18 AC 135 ms
53,868 KB
testcase_19 AC 136 ms
54,224 KB
testcase_20 AC 135 ms
53,948 KB
testcase_21 AC 137 ms
54,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
  
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    System.out.println((n-1)*(n-1));
    
  }

}
0