結果

問題 No.83 最大マッチング
ユーザー atkrymatkrym
提出日時 2016-10-25 22:32:16
言語 Java19
(openjdk 21)
結果
AC  
実行時間 316 ms / 5,000 ms
コード長 401 bytes
コンパイル時間 2,883 ms
コンパイル使用メモリ 72,684 KB
実行使用メモリ 58,760 KB
最終ジャッジ日時 2023-08-15 19:17:33
合計ジャッジ時間 5,615 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
55,868 KB
testcase_01 AC 105 ms
55,680 KB
testcase_02 AC 109 ms
55,872 KB
testcase_03 AC 109 ms
55,552 KB
testcase_04 AC 112 ms
55,640 KB
testcase_05 AC 112 ms
56,088 KB
testcase_06 AC 107 ms
55,892 KB
testcase_07 AC 111 ms
56,048 KB
testcase_08 AC 107 ms
55,936 KB
testcase_09 AC 131 ms
58,760 KB
testcase_10 AC 220 ms
58,524 KB
testcase_11 AC 312 ms
58,504 KB
testcase_12 AC 316 ms
58,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;

public class Main {
    private static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        int n = sc.nextInt();
        int cnt = n/2;
        int d = n%2;
        String s = d == 1 ? "7" : "1";
        for (int i = 1;i < cnt;i++) {
            s += "1";
        }
        System.out.println(s);
    }
}
0