結果

問題 No.83 最大マッチング
ユーザー r.suzukir.suzuki
提出日時 2016-01-14 16:51:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 152 ms / 5,000 ms
コード長 339 bytes
コンパイル時間 3,335 ms
コンパイル使用メモリ 75,044 KB
実行使用メモリ 57,620 KB
最終ジャッジ日時 2023-10-19 23:04:17
合計ジャッジ時間 5,858 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
57,440 KB
testcase_01 AC 132 ms
57,396 KB
testcase_02 AC 135 ms
57,456 KB
testcase_03 AC 134 ms
57,404 KB
testcase_04 AC 131 ms
57,400 KB
testcase_05 AC 132 ms
57,356 KB
testcase_06 AC 131 ms
55,452 KB
testcase_07 AC 130 ms
57,368 KB
testcase_08 AC 132 ms
57,468 KB
testcase_09 AC 138 ms
57,404 KB
testcase_10 AC 152 ms
57,512 KB
testcase_11 AC 144 ms
57,620 KB
testcase_12 AC 146 ms
57,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

public class No_83{
	public static void main(String[] args){
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int match = sc.nextInt();
		StringBuilder sb = new StringBuilder("");
		
		for(int i = 0;i < match/2;i++){
			sb.append('1');
		}
		
		if(match%2 != 0){
			sb.setCharAt(0,'7');
		}
		
		System.out.println(sb);
		
	}
}
0