結果
問題 |
No.83 最大マッチング
|
ユーザー |
![]() |
提出日時 | 2015-12-10 13:14:33 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 631 bytes |
コンパイル時間 | 2,089 ms |
コンパイル使用メモリ | 72,912 KB |
実行使用メモリ | 51,128 KB |
最終ジャッジ日時 | 2024-09-15 07:28:32 |
合計ジャッジ時間 | 4,309 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 WA * 6 |
ソースコード
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(); } } }