結果

問題 No.83 最大マッチング
ユーザー Mcpu3
提出日時 2018-08-27 18:25:41
言語 Java
(openjdk 23)
結果
AC  
実行時間 408 ms / 5,000 ms
コード長 266 bytes
コンパイル時間 1,910 ms
コンパイル使用メモリ 73,968 KB
実行使用メモリ 52,784 KB
最終ジャッジ日時 2024-07-04 18:26:41
合計ジャッジ時間 5,156 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt(),i;
		sc.close();
		if(n%2==1) {
			System.out.print(7);
			n-=3;
		}
		for(i=0;i<n;i+=2) System.out.print(1);
	}
}
0