結果

問題 No.83 最大マッチング
ユーザー koukonko
提出日時 2015-12-10 13:09:50
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 647 bytes
コンパイル時間 2,071 ms
コンパイル使用メモリ 74,408 KB
実行使用メモリ 50,452 KB
最終ジャッジ日時 2024-09-15 07:28:28
合計ジャッジ時間 3,646 ms
ジャッジサーバーID
(参考情報)
judge6 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));

		try {

			int count = Integer.parseInt(buff.readLine());
			int ans = 0;
			while(count > 0){
				if(count == 3){
					ans = ans * 10 + 7;
					break;
				}else{
					count -= 2;
					ans = ans * 10 + 1;
				}
			}
			System.out.println(ans);

		} catch (NumberFormatException e) {
			e.getStackTrace();
		} catch (IOException e) {
			e.getStackTrace();
		} catch (Exception e) {
			e.getStackTrace();
		}
	}
}
0