結果
| 問題 | No.83 最大マッチング |
| コンテスト | |
| ユーザー |
hamray
|
| 提出日時 | 2017-11-23 12:12:45 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 471 bytes |
| 記録 | |
| コンパイル時間 | 840 ms |
| コンパイル使用メモリ | 179,268 KB |
| 実行使用メモリ | 9,848 KB |
| 最終ジャッジ日時 | 2026-09-30 16:06:43 |
| 合計ジャッジ時間 | 9,949 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int N; cin >> N;
string S = "";
if(N % 2 == 0){
while(true){
if(N / 2 >= 1){
S += "1"; N /= 2;
}
if(N / 2 < 1) break;
}
}else{
while(true){
if(N == 3){
S += "7"; break;
}
if(N / 2 > 0){
S += "1"; N /= 2;
}
}
}
cout << S << endl;
return 0;
}
hamray