結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2019-01-11 18:33:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 5,000 ms |
| コード長 | 225 bytes |
| コンパイル時間 | 544 ms |
| コンパイル使用メモリ | 65,464 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-29 13:04:15 |
| 合計ジャッジ時間 | 1,319 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n;
cin >> n;
string S = "";
while (n >= 2)
{
if (n == 3)
{
S = "7" + S;
break;
}
S = "1" + S;
n -= 2;
}
cout << S << endl;
}
toshiro_yanagi