結果

問題 No.3054 ほぼ直角二等辺三角形
ユーザー chocoruskchocorusk
提出日時 2019-03-29 23:31:43
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,016 bytes
コンパイル時間 1,035 ms
コンパイル使用メモリ 96,860 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-24 16:50:25
合計ジャッジ時間 2,392 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 2 ms
5,376 KB
testcase_09 AC 2 ms
5,376 KB
testcase_10 AC 2 ms
5,376 KB
testcase_11 AC 1 ms
5,376 KB
testcase_12 AC 2 ms
5,376 KB
testcase_13 AC 2 ms
5,376 KB
testcase_14 AC 2 ms
5,376 KB
testcase_15 AC 1 ms
5,376 KB
testcase_16 AC 1 ms
5,376 KB
testcase_17 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <complex>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <cassert>
#include <fstream>
#define popcount __builtin_popcount
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> P;
ll a[]={3, 20, 696, 4059, 23660, 137903, 4684659, 27304196, 159140519ll, 5406093003ll, 31509019100ll, 183648021599ll, 6238626641379ll, 36361380737780ll, 211929657785303ll, 1235216565974040ll, 41961001862379596ll, 244566641436218639ll};
ll c[]={5, 29, 985, 5741, 33461, 195025, 6625109, 38613965, 225058681ll, 7645370045ll, 44560482149ll, 259717522849ll, 8822750406821ll, 51422757785981ll, 299713796309065ll, 1746860020068409ll, 59341817924539925ll, 345869461223138161ll};
int main()
{
    int x; cin>>x;
    cout<<a[x-1]<<" "<<a[x-1]+1<<" "<<c[x-1]<<endl;
    return 0;
}
0