結果

問題 No.83 最大マッチング
ユーザー kou6839
提出日時 2014-12-03 12:24:26
言語 Java
(openjdk 23)
結果
AC  
実行時間 118 ms / 5,000 ms
コード長 506 bytes
コンパイル時間 2,940 ms
コンパイル使用メモリ 74,076 KB
実行使用メモリ 41,556 KB
最終ジャッジ日時 2024-06-11 14:41:29
合計ジャッジ時間 4,898 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int iti = n/2-1;
        int mae = n%2;
        StringBuffer bu = new StringBuffer();
        for(int i=0;i<iti;i++){
        	bu.append(1);
        }
        if(mae==0){
        	bu.insert(0, 1);
        }else{
        	bu.insert(0, 7);
        }
        System.out.println(bu);
    }
}
0