結果
問題 | No.83 最大マッチング |
ユーザー | Pump0129 |
提出日時 | 2018-04-23 10:06:51 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 346 ms / 5,000 ms |
コード長 | 634 bytes |
コンパイル時間 | 3,077 ms |
コンパイル使用メモリ | 71,580 KB |
実行使用メモリ | 62,264 KB |
最終ジャッジ日時 | 2023-09-09 21:33:03 |
合計ジャッジ時間 | 5,656 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 45 ms
49,360 KB |
testcase_01 | AC | 45 ms
49,200 KB |
testcase_02 | AC | 46 ms
49,196 KB |
testcase_03 | AC | 45 ms
49,232 KB |
testcase_04 | AC | 44 ms
49,188 KB |
testcase_05 | AC | 44 ms
49,196 KB |
testcase_06 | AC | 44 ms
49,152 KB |
testcase_07 | AC | 44 ms
49,132 KB |
testcase_08 | AC | 43 ms
49,128 KB |
testcase_09 | AC | 118 ms
51,888 KB |
testcase_10 | AC | 293 ms
62,244 KB |
testcase_11 | AC | 346 ms
62,264 KB |
testcase_12 | AC | 343 ms
61,980 KB |
ソースコード
package net.ipipip0129.yukicoder.no83; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int mNumber = Integer.parseInt(br.readLine()); if (mNumber % 2 == 1) { System.out.print(7); mNumber -= 3; } for (int i = 0; i < mNumber / 2; i++) { System.out.print(1); } System.out.println(); br.close(); } }