結果

問題 No.2140 Triangle
ユーザー ぬ
提出日時 2022-12-02 22:04:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 149 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 2,365 ms
コンパイル使用メモリ 77,404 KB
実行使用メモリ 54,616 KB
最終ジャッジ日時 2024-04-18 06:06:03
合計ジャッジ時間 7,153 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
54,368 KB
testcase_01 AC 134 ms
54,616 KB
testcase_02 AC 131 ms
53,936 KB
testcase_03 AC 132 ms
54,004 KB
testcase_04 AC 143 ms
54,160 KB
testcase_05 AC 142 ms
54,328 KB
testcase_06 AC 134 ms
53,996 KB
testcase_07 AC 135 ms
54,140 KB
testcase_08 AC 133 ms
54,032 KB
testcase_09 AC 131 ms
54,240 KB
testcase_10 AC 134 ms
41,356 KB
testcase_11 AC 135 ms
41,396 KB
testcase_12 AC 149 ms
41,548 KB
testcase_13 AC 134 ms
41,296 KB
testcase_14 AC 135 ms
41,372 KB
testcase_15 AC 134 ms
41,420 KB
testcase_16 AC 133 ms
41,280 KB
testcase_17 AC 135 ms
41,396 KB
testcase_18 AC 133 ms
41,748 KB
testcase_19 AC 133 ms
41,704 KB
testcase_20 AC 133 ms
41,596 KB
testcase_21 AC 139 ms
41,236 KB
testcase_22 AC 133 ms
41,344 KB
testcase_23 AC 133 ms
41,340 KB
testcase_24 AC 134 ms
41,368 KB
testcase_25 AC 133 ms
41,456 KB
testcase_26 AC 131 ms
41,392 KB
testcase_27 AC 132 ms
41,588 KB
testcase_28 AC 130 ms
41,412 KB
testcase_29 AC 131 ms
41,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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