結果

問題 No.8054 ほぼ直角二等辺三角形
ユーザー moririn2528_c
提出日時 2019-04-01 22:00:49
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 1,037 bytes
コンパイル時間 595 ms
コンパイル使用メモリ 72,628 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 02:43:22
合計ジャッジ時間 1,839 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<vector>
#include<cmath>
#include<algorithm>
#include<map>
#include<queue>
#include<deque>
#include<ctime>
using namespace std;
typedef long long int LL;
typedef pair<int,int> P;
typedef pair<int,pair<int,int> > PP;
typedef pair<LL,int> LP;
const int INF=1<<30;
const LL MAX=1e9+7;

void array_show(int *array,int array_n,char middle=' '){
	for(int i=0;i<array_n;i++)printf("%d%c",array[i],(i!=array_n-1?middle:'\n'));
}
void array_show(LL *array,int array_n,char middle=' '){
	for(int i=0;i<array_n;i++)printf("%lld%c",array[i],(i!=array_n-1?middle:'\n'));
}
void print_YES_NO(bool answer){cout<<(answer?"YES":"NO")<<endl;}
void print_Yes_No(bool answer){cout<<(answer?"Yes":"No")<<endl;}
void print_POSSIBLE_IMPOSSIBLE(bool answer){cout<<(answer?"POSSIBLE":"IMPOSSIBLE")<<endl;}

int main(){
	int x;
	int i,j,k;
	LL a,b,c;
	cin>>x;
	if(x%2==0)a=1;
	else a=3;
	x/=2;
	for(i=0;i<x;i++)a*=10;
	if(x>=2)a++;
	b=a*a/2;
	c=b+1;
	cout<<a<<" "<<b<<" "<<c<<endl;
}
0