結果

問題 No.3054 ほぼ直角二等辺三角形
ユーザー kotatsugamekotatsugame
提出日時 2019-04-02 00:08:29
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 723 bytes
コンパイル時間 483 ms
コンパイル使用メモリ 64,660 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-18 03:55:19
合計ジャッジ時間 1,908 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 2 ms
4,376 KB
testcase_11 AC 1 ms
4,380 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 2 ms
4,376 KB
testcase_14 AC 2 ms
4,380 KB
testcase_15 AC 2 ms
4,380 KB
testcase_16 AC 2 ms
4,380 KB
testcase_17 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:24:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-Wreturn-type]
   24 | main()
      | ^~~~

ソースコード

diff #

#include<iostream>
using namespace std;
string ans[19]={
"",
"3 4 5",
"20 21 29",
"696 697 985",
"4059 4060 5741",
"23660 23661 33461",
"137903 137904 195025",
"803760 803761 1136689",
"27304196 27304197 38613965",
"159140519 159140520 225058681",
"927538920 927538921 1311738121",
"31509019100 31509019101 44560482149",
"183648021599 183648021600 259717522849",
"1070379110496 1070379110497 1513744654945",
"36361380737780 36361380737781 51422757785981",
"211929657785303 211929657785304 299713796309065",
"1235216565974040 1235216565974041 1746860020068409",
"7199369738058939 7199369738058940 10181446324101389",
"244566641436218639 244566641436218640 345869461223138161"
};
main()
{
	int x;cin>>x;cout<<ans[x]<<endl;
}
0