結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
ふう
|
| 提出日時 | 2015-01-26 14:11:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 557 bytes |
| コンパイル時間 | 664 ms |
| コンパイル使用メモリ | 82,180 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-23 03:14:41 |
| 合計ジャッジ時間 | 1,166 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 6 WA * 4 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <iostream>
#include <map>
#include <list>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <queue>
#include <iomanip>
using namespace std;
int main(void)
{
long long n;
long long res = 1;
long long tmp = 1;
cin >> n;
for (int i = 1; i < n / 2; i++) {
if(i == (n / 2) - 1 && n % 2 == 1) {
tmp *= 70;
} else {
tmp *= 10;
}
res += tmp;
}
cout << res << endl;
return (0);
}
ふう