結果

問題 No.244 ★1のグラフの問題
ユーザー samplelpmassamplelpmas
提出日時 2016-12-11 22:46:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 2,283 ms
コンパイル使用メモリ 74,388 KB
実行使用メモリ 56,164 KB
最終ジャッジ日時 2024-04-15 03:20:43
合計ジャッジ時間 4,288 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
53,768 KB
testcase_01 AC 134 ms
53,940 KB
testcase_02 AC 140 ms
54,164 KB
testcase_03 AC 136 ms
53,956 KB
testcase_04 AC 134 ms
53,880 KB
testcase_05 AC 134 ms
53,968 KB
testcase_06 AC 135 ms
54,168 KB
testcase_07 AC 136 ms
54,132 KB
testcase_08 AC 133 ms
54,100 KB
testcase_09 AC 136 ms
56,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int vertices = sc.nextInt();

        int edges = vertices - 1;

        System.out.println(edges);

    }

}
0