結果

問題 No.83 最大マッチング
ユーザー tentententen
提出日時 2020-11-05 08:24:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 280 bytes
コンパイル時間 4,483 ms
コンパイル使用メモリ 71,400 KB
実行使用メモリ 56,220 KB
最終ジャッジ日時 2023-09-29 16:43:20
合計ジャッジ時間 7,578 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,728 KB
testcase_01 AC 119 ms
55,592 KB
testcase_02 AC 120 ms
56,208 KB
testcase_03 AC 118 ms
56,124 KB
testcase_04 AC 119 ms
56,092 KB
testcase_05 AC 119 ms
54,004 KB
testcase_06 AC 120 ms
55,848 KB
testcase_07 AC 118 ms
55,616 KB
testcase_08 AC 119 ms
55,556 KB
testcase_09 AC 119 ms
56,220 KB
testcase_10 AC 120 ms
55,712 KB
testcase_11 AC 121 ms
56,136 KB
testcase_12 AC 121 ms
56,188 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