結果

問題 No.83 最大マッチング
ユーザー tur1n6tur1n6
提出日時 2017-05-06 09:33:41
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 537 bytes
コンパイル時間 1,050 ms
コンパイル使用メモリ 50,548 KB
実行使用メモリ 7,740 KB
最終ジャッジ日時 2023-10-12 14:56:49
合計ジャッジ時間 7,148 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 WA -
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

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