結果

問題 No.83 最大マッチング
ユーザー mos_13184925mos_13184925
提出日時 2018-06-30 14:56:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 382 ms / 5,000 ms
コード長 362 bytes
コンパイル時間 2,498 ms
コンパイル使用メモリ 71,364 KB
実行使用メモリ 65,192 KB
最終ジャッジ日時 2023-09-13 16:17:41
合計ジャッジ時間 5,388 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,800 KB
testcase_01 AC 126 ms
55,612 KB
testcase_02 AC 123 ms
55,480 KB
testcase_03 AC 121 ms
55,896 KB
testcase_04 AC 123 ms
55,852 KB
testcase_05 AC 121 ms
55,696 KB
testcase_06 AC 119 ms
55,468 KB
testcase_07 AC 120 ms
56,420 KB
testcase_08 AC 121 ms
55,836 KB
testcase_09 AC 218 ms
60,472 KB
testcase_10 AC 338 ms
64,816 KB
testcase_11 AC 381 ms
65,192 KB
testcase_12 AC 382 ms
64,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        if(n%2==0) System.out.print("1");
        else System.out.print("7");

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