結果
問題 |
No.83 最大マッチング
|
ユーザー |
![]() |
提出日時 | 2015-12-10 13:19:22 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 271 ms / 5,000 ms |
コード長 | 636 bytes |
コンパイル時間 | 2,373 ms |
コンパイル使用メモリ | 82,312 KB |
実行使用メモリ | 54,392 KB |
最終ジャッジ日時 | 2024-09-15 07:29:39 |
合計ジャッジ時間 | 4,456 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
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(); } } }