結果

問題 No.83 最大マッチング
ユーザー shinwisteriashinwisteria
提出日時 2019-01-22 20:41:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 368 bytes
コンパイル時間 4,426 ms
コンパイル使用メモリ 72,076 KB
実行使用メモリ 57,856 KB
最終ジャッジ日時 2023-10-14 09:18:44
合計ジャッジ時間 5,969 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,816 KB
testcase_01 AC 119 ms
55,964 KB
testcase_02 AC 117 ms
55,816 KB
testcase_03 AC 118 ms
55,692 KB
testcase_04 AC 121 ms
55,772 KB
testcase_05 AC 119 ms
56,080 KB
testcase_06 AC 120 ms
55,920 KB
testcase_07 AC 122 ms
55,832 KB
testcase_08 AC 119 ms
55,656 KB
testcase_09 AC 128 ms
56,320 KB
testcase_10 AC 132 ms
57,856 KB
testcase_11 AC 134 ms
55,676 KB
testcase_12 AC 134 ms
55,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No83 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		s.close();

		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < N/2 - 1;i++){
			sb.append("1");
		}
		if(N % 2 == 1){
			sb.insert(0, "7");
		}else{
			sb.append("1");
		}
		System.out.println(sb);

	}

}
0