結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
55,892 KB
testcase_01 AC 125 ms
55,784 KB
testcase_02 AC 142 ms
55,712 KB
testcase_03 WA -
testcase_04 AC 143 ms
57,532 KB
testcase_05 WA -
testcase_06 AC 143 ms
55,952 KB
testcase_07 WA -
testcase_08 AC 140 ms
55,812 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 156 ms
55,848 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":String.format("%"+(N%2>0?N-3:N)/2+"s"," ").replace(' ','1')+(N%2>0?"7":""));
	}
}
0