結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-02-28 04:29:29 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 269 bytes |
| コンパイル時間 | 669 ms |
| コンパイル使用メモリ | 57,072 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 11:58:45 |
| 合計ジャッジ時間 | 1,201 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
int mnum[10]={6,2,5,5,4,5,6,3,7,6};
int N;
cin>>N;
while(N!=0){
if(N%2==1&&N>=3){
cout<<"7";
N-=3;
}
else if(N/2>=1){
cout<<"1";
N-=2;
}
else break;
}
cout<<endl;
}
kongarishisyamo