結果

問題 No.83 最大マッチング
ユーザー キョウチクキョウチク
提出日時 2021-09-15 05:02:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 333 ms / 5,000 ms
コード長 492 bytes
コンパイル時間 1,878 ms
コンパイル使用メモリ 72,052 KB
実行使用メモリ 60,204 KB
最終ジャッジ日時 2023-09-10 10:28:10
合計ジャッジ時間 4,268 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,140 KB
testcase_01 AC 43 ms
49,344 KB
testcase_02 AC 42 ms
49,364 KB
testcase_03 AC 43 ms
49,424 KB
testcase_04 AC 43 ms
49,160 KB
testcase_05 AC 43 ms
49,152 KB
testcase_06 AC 43 ms
49,200 KB
testcase_07 AC 43 ms
49,272 KB
testcase_08 AC 43 ms
49,148 KB
testcase_09 AC 114 ms
51,412 KB
testcase_10 AC 294 ms
59,516 KB
testcase_11 AC 333 ms
60,204 KB
testcase_12 AC 322 ms
58,944 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());
        for(;mattiN>0;mattiN-=2){
            if(mattiN%2!=0){
                System.out.print("7");
                mattiN-=1;
            }else{
                System.out.print("1");
            }
        }
        System.out.println();
    }
}
0