結果

問題 No.83 最大マッチング
ユーザー koukonkokoukonko
提出日時 2015-12-10 13:14:33
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 631 bytes
コンパイル時間 1,887 ms
コンパイル使用メモリ 72,472 KB
実行使用メモリ 64,180 KB
最終ジャッジ日時 2023-10-13 10:23:00
合計ジャッジ時間 4,088 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
47,488 KB
testcase_01 AC 41 ms
49,148 KB
testcase_02 AC 42 ms
49,292 KB
testcase_03 WA -
testcase_04 AC 43 ms
49,352 KB
testcase_05 WA -
testcase_06 AC 43 ms
49,436 KB
testcase_07 WA -
testcase_08 AC 42 ms
49,088 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 338 ms
62,296 KB
権限があれば一括ダウンロードができます

ソースコード

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());
			while(count > 0){
				if(count == 3){
					System.out.print(7);
					break;
				}else{
					count -= 2;
					System.out.print(1);
				}
			}
			System.out.println();
		} catch (NumberFormatException e) {
			e.getStackTrace();
		} catch (IOException e) {
			e.getStackTrace();
		} catch (Exception e) {
			e.getStackTrace();
		}
	}
}
0