結果

問題 No.83 最大マッチング
ユーザー htensaihtensai
提出日時 2019-12-06 08:55:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 283 bytes
コンパイル時間 2,087 ms
コンパイル使用メモリ 71,324 KB
実行使用メモリ 56,284 KB
最終ジャッジ日時 2023-08-24 19:43:46
合計ジャッジ時間 4,922 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,664 KB
testcase_01 AC 118 ms
56,228 KB
testcase_02 AC 117 ms
55,740 KB
testcase_03 AC 120 ms
56,024 KB
testcase_04 AC 119 ms
55,840 KB
testcase_05 AC 121 ms
55,844 KB
testcase_06 AC 118 ms
54,388 KB
testcase_07 AC 119 ms
56,120 KB
testcase_08 AC 119 ms
56,284 KB
testcase_09 AC 119 ms
56,112 KB
testcase_10 AC 123 ms
55,896 KB
testcase_11 AC 122 ms
55,992 KB
testcase_12 AC 121 ms
55,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		char[] arr = new char[n / 2];
		Arrays.fill(arr, '1');
		if (n % 2 == 1) {
		    arr[0] = '7';
		}
		System.out.println(arr);
   }
}

0