結果

問題 No.83 最大マッチング
ユーザー papipen
提出日時 2017-04-11 20:28:59
言語 Java
(openjdk 23)
結果
AC  
実行時間 420 ms / 5,000 ms
コード長 357 bytes
コンパイル時間 2,023 ms
コンパイル使用メモリ 74,156 KB
実行使用メモリ 52,844 KB
最終ジャッジ日時 2024-07-18 09:06:08
合計ジャッジ時間 5,335 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

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