結果

問題 No.83 最大マッチング
ユーザー キョウチクキョウチク
提出日時 2021-09-15 05:01:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 331 ms / 5,000 ms
コード長 453 bytes
コンパイル時間 1,918 ms
コンパイル使用メモリ 71,384 KB
実行使用メモリ 60,104 KB
最終ジャッジ日時 2023-09-10 10:27:09
合計ジャッジ時間 4,739 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,412 KB
testcase_01 AC 42 ms
49,344 KB
testcase_02 AC 43 ms
49,420 KB
testcase_03 AC 43 ms
49,324 KB
testcase_04 AC 43 ms
49,528 KB
testcase_05 AC 44 ms
49,264 KB
testcase_06 AC 43 ms
49,212 KB
testcase_07 AC 43 ms
49,424 KB
testcase_08 AC 44 ms
49,068 KB
testcase_09 AC 116 ms
52,140 KB
testcase_10 AC 293 ms
59,212 KB
testcase_11 AC 329 ms
59,636 KB
testcase_12 AC 331 ms
60,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

class Test{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int mattiN;
        mattiN=Integer.parseInt(br.readLine());
        if(mattiN%2!=0){
            System.out.print("7");
            mattiN-=3;
        }
        for(;mattiN>0;mattiN-=2){
            System.out.print("1");
        }
        System.out.println();
    }
}
0