結果

問題 No.83 最大マッチング
ユーザー keishi7773
提出日時 2019-08-29 14:56:48
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
MLE  
実行時間 -
コード長 491 bytes
コンパイル時間 691 ms
コンパイル使用メモリ 76,784 KB
実行使用メモリ 814,856 KB
最終ジャッジ日時 2024-11-17 16:53:53
合計ジャッジ時間 40,763 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample MLE * 3
other RE * 4 MLE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include <queue>
typedef long long ll;
using namespace std;
#define rep(i, n) for (int i = 0; i <= (int)(n); i++)
#define mod 1000000007

int main(){
	int N;
	cin >> N;
	string a;
	string b;
	if(N % 2 == 0){
		while(N % 2 == 0){
			a += "1";
		}
	}
	else if(N % 3 == 0){
		while(N % 3 == 0){
			b += "7";
		}
	}
	int aa = stoi(a);
	int	bb = stoi(b);
	int ans = max({aa, bb});
	cout << ans << endl;
}
0