結果
問題 | No.83 最大マッチング |
ユーザー | koukonko |
提出日時 | 2015-12-10 13:09:50 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 647 bytes |
コンパイル時間 | 2,130 ms |
コンパイル使用メモリ | 71,036 KB |
実行使用メモリ | 51,200 KB |
最終ジャッジ日時 | 2023-10-13 10:22:56 |
合計ジャッジ時間 | 3,371 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 42 ms
49,324 KB |
testcase_01 | AC | 43 ms
49,176 KB |
testcase_02 | AC | 43 ms
49,280 KB |
testcase_03 | WA | - |
testcase_04 | AC | 42 ms
49,284 KB |
testcase_05 | WA | - |
testcase_06 | AC | 42 ms
49,388 KB |
testcase_07 | WA | - |
testcase_08 | AC | 42 ms
49,264 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
ソースコード
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(); } } }