結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 161 ms
57,252 KB
testcase_01 AC 124 ms
55,636 KB
testcase_02 AC 161 ms
56,544 KB
testcase_03 AC 164 ms
56,788 KB
testcase_04 AC 166 ms
56,832 KB
testcase_05 AC 166 ms
57,256 KB
testcase_06 AC 164 ms
56,564 KB
testcase_07 AC 163 ms
56,588 KB
testcase_08 AC 166 ms
57,220 KB
testcase_09 AC 170 ms
56,980 KB
testcase_10 AC 173 ms
56,580 KB
testcase_11 AC 180 ms
56,752 KB
testcase_12 AC 180 ms
56,612 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?"7%":"%")+(N%2>0?N-3:N)/2+"s"," ").replace(' ','1'));
	}
}
0