結果

問題 No.83 最大マッチング
ユーザー キョウチクキョウチク
提出日時 2021-09-15 05:08:49
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 524 bytes
コンパイル時間 1,880 ms
コンパイル使用メモリ 71,624 KB
実行使用メモリ 50,496 KB
最終ジャッジ日時 2023-09-10 10:34:14
合計ジャッジ時間 3,393 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

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