結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
pmx_x
|
| 提出日時 | 2019-07-12 14:07:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 109 ms / 5,000 ms |
| コード長 | 322 bytes |
| コンパイル時間 | 2,008 ms |
| コンパイル使用メモリ | 168,776 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-17 12:35:43 |
| 合計ジャッジ時間 | 2,950 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
string ans ="";
int z = N/2;
if(N%2 == 0){
for (int i = 0; i < z; i++)
{
ans = ans + "1";
}
}else{
ans = ans + "7";
for (int i = 0; i < z-1; i++)
{
ans = ans + "1";
}
}
cout << ans << endl;
}
pmx_x