結果

問題 No.83 最大マッチング
ユーザー カニ戯(ryカニ戯(ry
提出日時 2015-02-25 14:15:39
言語 Java19
(openjdk 21)
結果
AC  
実行時間 157 ms / 5,000 ms
コード長 240 bytes
コンパイル時間 2,169 ms
コンパイル使用メモリ 74,620 KB
実行使用メモリ 56,244 KB
最終ジャッジ日時 2023-09-06 04:28:48
合計ジャッジ時間 4,954 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 145 ms
55,780 KB
testcase_01 AC 124 ms
55,400 KB
testcase_02 AC 147 ms
55,992 KB
testcase_03 AC 142 ms
55,960 KB
testcase_04 AC 141 ms
55,956 KB
testcase_05 AC 143 ms
56,244 KB
testcase_06 AC 145 ms
55,576 KB
testcase_07 AC 140 ms
55,812 KB
testcase_08 AC 139 ms
55,688 KB
testcase_09 AC 153 ms
55,984 KB
testcase_10 AC 156 ms
55,964 KB
testcase_11 AC 157 ms
56,220 KB
testcase_12 AC 157 ms
55,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main {
	public static void main(String[] a) {
		int N=new Scanner(System.in).nextInt();
		System.out.println(N==3?"7":(N%2>0?"7":"")+String.format("%"+(N%2>0?N-3:N)/2+"s"," ").replace(' ','1'));
	}
}
0