結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2016-08-27 22:55:20 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 506 ms |
コンパイル使用メモリ | 63,360 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 20:00:53 |
合計ジャッジ時間 | 1,239 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <iostream> using namespace std; int main(int argc, char** argv) { int n; cin >> n; int one = 0, seven = 0; if (n % 2 != 0) { seven = 1; one = n / 2 - 1; } else { one = n / 2; } if (seven == 1) cout << "7"; for (int i = 0; i < one; i++) cout << "1"; cout << endl; return 0; }