結果

問題 No.83 最大マッチング
ユーザー キョウチク
提出日時 2021-09-15 05:02:53
言語 Java
(openjdk 23)
結果
AC  
実行時間 357 ms / 5,000 ms
コード長 492 bytes
コンパイル時間 2,210 ms
コンパイル使用メモリ 73,636 KB
実行使用メモリ 48,916 KB
最終ジャッジ日時 2024-06-28 01:52:29
合計ジャッジ時間 4,244 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

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