結果
問題 | No.83 最大マッチング |
ユーザー | koukonko |
提出日時 | 2015-12-10 13:19:22 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 275 ms / 5,000 ms |
コード長 | 636 bytes |
コンパイル時間 | 1,998 ms |
コンパイル使用メモリ | 72,704 KB |
実行使用メモリ | 55,076 KB |
最終ジャッジ日時 | 2023-10-13 10:23:58 |
合計ジャッジ時間 | 4,030 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 52 ms
49,868 KB |
testcase_01 | AC | 52 ms
50,112 KB |
testcase_02 | AC | 52 ms
49,540 KB |
testcase_03 | AC | 52 ms
49,880 KB |
testcase_04 | AC | 51 ms
49,820 KB |
testcase_05 | AC | 51 ms
49,864 KB |
testcase_06 | AC | 50 ms
47,996 KB |
testcase_07 | AC | 50 ms
49,728 KB |
testcase_08 | AC | 49 ms
49,732 KB |
testcase_09 | AC | 68 ms
53,776 KB |
testcase_10 | AC | 177 ms
55,076 KB |
testcase_11 | AC | 273 ms
54,796 KB |
testcase_12 | AC | 275 ms
54,488 KB |
ソースコード
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()); String ans = ""; while(count > 0){ if(count == 3){ ans = 7 + ans; break; }else{ count -= 2; ans += 1; } } System.out.println(ans); } catch (NumberFormatException e) { e.getStackTrace(); } catch (IOException e) { e.getStackTrace(); } catch (Exception e) { e.getStackTrace(); } } }