結果
| 問題 | No.83 最大マッチング |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-27 18:53:56 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 327 bytes |
| 記録 | |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 58,112 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-17 16:28:53 |
| 合計ジャッジ時間 | 1,483 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <stdio.h>
#include <string>
int main(){
int N;
scanf("%d",&N);
std::string s;
if (N%2 == 0){
for (int i = 0;i < N/2;i++){
s += '1';
}
}else{
s += '7';
for (int i = 0;i < (N-3)/2;i++){
s += '1';
}
}
printf("%s\n",s.c_str());
}