結果

問題 No.83 最大マッチング
ユーザー ffmm00ffmm00
提出日時 2015-06-21 06:53:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 399 ms / 5,000 ms
コード長 310 bytes
コンパイル時間 5,654 ms
コンパイル使用メモリ 71,912 KB
実行使用メモリ 65,012 KB
最終ジャッジ日時 2023-09-21 22:17:01
合計ジャッジ時間 7,672 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,892 KB
testcase_01 AC 126 ms
55,864 KB
testcase_02 AC 126 ms
55,880 KB
testcase_03 AC 125 ms
55,748 KB
testcase_04 AC 124 ms
55,908 KB
testcase_05 AC 126 ms
55,664 KB
testcase_06 AC 127 ms
55,828 KB
testcase_07 AC 125 ms
55,612 KB
testcase_08 AC 125 ms
55,652 KB
testcase_09 AC 227 ms
59,836 KB
testcase_10 AC 356 ms
64,548 KB
testcase_11 AC 392 ms
64,892 KB
testcase_12 AC 399 ms
65,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N083 {

	public static void main(String[] args) {

		Scanner sca = new Scanner(System.in);

		int n = sca.nextInt();

		if (n % 2 == 1) {
			System.out.print("7");
			n -= 2;
		}

		while (n > 1) {
			System.out.print("1");
			n -= 2;
		}

		System.out.println();

	}

}
0