結果

問題 No.83 最大マッチング
ユーザー FSM
提出日時 2019-11-01 17:09:37
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 1,540 ms
コンパイル使用メモリ 158,472 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-14 22:46:17
合計ジャッジ時間 2,144 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
	int A, ans=0;
	std::cin >> A;
	for (auto i = 0; i < A / 2; i++) {
		ans += pow(10, i);
		if (A % 2 == 1 && A  / 2 -2<= i) {
			ans += pow(10, i) * 6;
		}
	}
	std::cout << ans << std::endl;
}
0