結果

問題 No.83 最大マッチング
ユーザー tur1n6
提出日時 2017-05-06 09:33:41
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 537 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 53,976 KB
実行使用メモリ 8,576 KB
最終ジャッジ日時 2024-09-14 13:47:02
合計ジャッジ時間 6,972 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other WA * 1 TLE * 1 -- * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
    int N; cin >> N;

    int i=0;

    while(N>0){
        if(N>6){
            N = N-6;
            cout << 9;
        }

        if(N==5){
            N= N-5;
            cout << 5;
        }

        if(N==4){
            N = N-2;
            N = N-2;
            cout << 11;
        }
        
        if(N==3){
            N= N-3;
            cout << 7;
        }
        if(N==2){
            N = N-2;
            cout << 1;
        }
    }

    cout << endl;
    return 0;
}
0