結果

問題 No.83 最大マッチング
ユーザー TatsuDX
提出日時 2016-09-08 23:45:26
言語 Java
(openjdk 23)
結果
AC  
実行時間 438 ms / 5,000 ms
コード長 346 bytes
コンパイル時間 3,744 ms
コンパイル使用メモリ 74,748 KB
実行使用メモリ 50,312 KB
最終ジャッジ日時 2024-11-15 22:29:17
合計ジャッジ時間 7,195 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		String s;
		if(n%2 == 1){
			System.out.print("7");
		} else {
			System.out.print("1");
		}
		n /= 2;
		for(int i = 1; i < n; i++){
			System.out.print("1");
		}
		System.out.println();
	}
}
0