結果

問題 No.83 最大マッチング
ユーザー Konton7
提出日時 2019-11-28 22:22:47
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 269 bytes
コンパイル時間 687 ms
コンパイル使用メモリ 70,432 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-19 05:42:19
合計ジャッジ時間 1,497 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <math.h>
using namespace std;

int main(){
    int n, a, b;
    b = 1;
    cin >> n;
    if (n % 2 == 1) b = 7;
    a = n / 2 - 1;
    for ( int i = 0; i < a; i++ ) cout << 1;
    cout << b << endl;
    
    return 0;
}
0