結果

問題 No.83 最大マッチング
ユーザー chiho_miyako
提出日時 2015-04-10 11:26:03
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 529 bytes
コンパイル時間 2,745 ms
コンパイル使用メモリ 74,516 KB
実行使用メモリ 64,276 KB
最終ジャッジ日時 2024-07-04 13:31:20
合計ジャッジ時間 5,955 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner koko = new Scanner(System.in);
        int n = koko.nextInt();
        if(n%2==0){
            int l = n/2;
            for(int i=0; i<l-1; i++){
                System.out.print(1);
            }
        }else{
            int l =(n-1)/2;
            System.out.print(7);
            for(int i=1; i<l-1; i++){
                System.out.print(1);
            }
        }
        System.out.println(1);
    }
}
0