結果

問題 No.83 最大マッチング
ユーザー omc-testomc-test
提出日時 2016-08-05 14:36:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 383 ms / 5,000 ms
コード長 507 bytes
コンパイル時間 3,554 ms
コンパイル使用メモリ 74,776 KB
実行使用メモリ 51,276 KB
最終ジャッジ日時 2024-04-24 15:38:19
合計ジャッジ時間 5,886 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
37,076 KB
testcase_01 AC 51 ms
36,952 KB
testcase_02 AC 51 ms
37,068 KB
testcase_03 AC 51 ms
36,700 KB
testcase_04 AC 54 ms
37,148 KB
testcase_05 AC 52 ms
37,128 KB
testcase_06 AC 52 ms
36,848 KB
testcase_07 AC 52 ms
37,208 KB
testcase_08 AC 53 ms
37,064 KB
testcase_09 AC 132 ms
38,572 KB
testcase_10 AC 334 ms
51,192 KB
testcase_11 AC 371 ms
51,276 KB
testcase_12 AC 383 ms
51,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class No0083 {
	public static void main(String[] args){
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
			int n = Integer.parseInt(br.readLine());
			if(n%2 == 0){
				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();
		}catch(IOException e){
			e.printStackTrace();
		}
	}
}
0