結果
| 問題 | No.83 最大マッチング |
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2019-01-11 18:42:05 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 304 bytes |
| 記録 | |
| コンパイル時間 | 375 ms |
| コンパイル使用メモリ | 73,984 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-23 08:46:37 |
| 合計ジャッジ時間 | 1,201 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
bool flg = false;
int cnt = 0;
while (n >= 2)
{
flg = n == 3 ? true : flg;
cnt++;
n -= 2;
}
for (int i = 0; i < cnt; i++)
{
if (i == 0 && flg)
{
printf("7");
continue;
}
printf("1");
}
cout << endl;
}
toshiro_yanagi