結果

問題 No.244 ★1のグラフの問題
ユーザー kou6839kou6839
提出日時 2015-07-18 01:32:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 1,779 ms
コンパイル使用メモリ 73,896 KB
実行使用メモリ 54,556 KB
最終ジャッジ日時 2024-04-15 02:54:35
合計ジャッジ時間 3,423 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
53,492 KB
testcase_01 AC 120 ms
54,080 KB
testcase_02 AC 104 ms
53,068 KB
testcase_03 AC 119 ms
54,556 KB
testcase_04 AC 109 ms
54,252 KB
testcase_05 AC 120 ms
54,236 KB
testcase_06 AC 121 ms
54,128 KB
testcase_07 AC 104 ms
52,972 KB
testcase_08 AC 119 ms
54,144 KB
testcase_09 AC 116 ms
53,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main {
	static int rec(int num){
		if(num==1) return 1;
		else return rec(num-1)+num;
	}
    public static void main(String[] args){
        // TODO 自動生成されたメソッド・スタブ
    	Scanner sc = new Scanner(System.in);
    	System.out.println(sc.nextInt()-1);
    }
}
0