結果

問題 No.83 最大マッチング
ユーザー omc-testomc-test
提出日時 2016-08-05 14:30:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 258 ms / 5,000 ms
コード長 512 bytes
コンパイル時間 2,944 ms
コンパイル使用メモリ 74,660 KB
実行使用メモリ 43,132 KB
最終ジャッジ日時 2024-04-24 15:37:24
合計ジャッジ時間 4,756 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
36,964 KB
testcase_01 AC 52 ms
37,148 KB
testcase_02 AC 50 ms
37,236 KB
testcase_03 AC 51 ms
37,408 KB
testcase_04 AC 50 ms
37,128 KB
testcase_05 AC 51 ms
37,228 KB
testcase_06 AC 51 ms
37,280 KB
testcase_07 AC 51 ms
37,132 KB
testcase_08 AC 50 ms
37,176 KB
testcase_09 AC 75 ms
42,164 KB
testcase_10 AC 170 ms
42,992 KB
testcase_11 AC 254 ms
42,964 KB
testcase_12 AC 258 ms
43,132 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());
			String str = new String();
			for(int i=0; i<n/2-1; i++){
				str += 1;
			}
			if(n%2 == 0){
				str += 1;
			}else{
				str = 7 + str;
			}
			System.out.println(str);
		}catch(IOException e){
			e.printStackTrace();
		}
	}
}
0