結果

問題 No.244 ★1のグラフの問題
ユーザー Yosuke YamaguchiYosuke Yamaguchi
提出日時 2020-12-31 15:00:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 3,550 ms
コンパイル使用メモリ 76,736 KB
実行使用メモリ 41,528 KB
最終ジャッジ日時 2024-04-17 20:37:29
合計ジャッジ時間 4,877 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
41,216 KB
testcase_01 AC 100 ms
41,152 KB
testcase_02 AC 109 ms
41,056 KB
testcase_03 AC 110 ms
39,996 KB
testcase_04 AC 111 ms
41,528 KB
testcase_05 AC 106 ms
41,024 KB
testcase_06 AC 110 ms
41,524 KB
testcase_07 AC 116 ms
40,876 KB
testcase_08 AC 99 ms
41,220 KB
testcase_09 AC 108 ms
41,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

// https://yukicoder.me/problems/no/244
public class onesGraph244 {
  public static void main(String[] args) {
    // 標準入力から読み込む際に、Scan
    Scanner sc = new Scanner(System.in);

    // String 1つ分を読み込む
    int s1 = Integer.parseInt(sc.next());
    int result = s1 - 1;
    // 標準出力に書き出す。
    System.out.println(result);
  }
}
0