結果
| 問題 | No.83 最大マッチング |
| コンテスト | |
| ユーザー |
guracoro_corori
|
| 提出日時 | 2019-06-24 21:18:29 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 475µs | |
| コード長 | 404 bytes |
| 記録 | |
| コンパイル時間 | 360 ms |
| コンパイル使用メモリ | 87,644 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-26 09:01:24 |
| 合計ジャッジ時間 | 1,451 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <iostream>
#include <string>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
int num,ans;
cin>>num;
ans=0;
string str;
str="";
if(num%2==0){
for(int i=0; i<num/2;i++){
str.push_back('1');
}
}else{
str.push_back('7');
for(int i=0; i<num/2-1;i++){
str.push_back('1');
}
}
cout<<str<<endl;
}
guracoro_corori