結果

問題 No.83 最大マッチング
コンテスト
ユーザー scrive66
提出日時 2015-06-03 17:48:38
言語 C++11
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 5,000 ms
+ 597µs
コード長 481 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 193 ms
コンパイル使用メモリ 63,360 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-08-09 18:56:10
合計ジャッジ時間 1,929 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <cstdio>
#include <cmath>
#include <map>
using namespace std;
# define M_PI 3.14159265358979323846

int main() {
    int n;
    scanf("%d", &n);
    
    int tmp = n / 2; 
    if(n % 2 == 0) {
        for(int i = 0; i < tmp; i++){
            printf("1");
        }
        printf("\n");
    } else {
        int tmp = n / 2 - 1;
        printf("7");
        for(int i = 0; i < tmp; i++){
            printf("1");
        }
        printf("\n");
    }
    
    return 0;
}
0