結果

問題 No.83 最大マッチング
ユーザー カニ戯(ryカニ戯(ry
提出日時 2015-02-25 14:20:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 157 ms / 5,000 ms
コード長 238 bytes
コンパイル時間 2,289 ms
コンパイル使用メモリ 73,324 KB
実行使用メモリ 56,132 KB
最終ジャッジ日時 2023-09-06 04:29:27
合計ジャッジ時間 5,123 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
55,920 KB
testcase_01 AC 121 ms
55,496 KB
testcase_02 AC 141 ms
56,096 KB
testcase_03 AC 142 ms
55,556 KB
testcase_04 AC 141 ms
55,680 KB
testcase_05 AC 138 ms
55,492 KB
testcase_06 AC 141 ms
55,704 KB
testcase_07 AC 143 ms
55,824 KB
testcase_08 AC 143 ms
53,832 KB
testcase_09 AC 152 ms
56,092 KB
testcase_10 AC 155 ms
56,132 KB
testcase_11 AC 156 ms
55,940 KB
testcase_12 AC 157 ms
55,832 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