結果

問題 No.1220 yukipoker
ユーザー kotatsugamekotatsugame
提出日時 2020-10-09 18:36:54
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 219 ms / 2,000 ms
コード長 289 bytes
コンパイル時間 763 ms
コンパイル使用メモリ 68,056 KB
実行使用メモリ 4,828 KB
最終ジャッジ日時 2023-09-27 13:51:16
合計ジャッジ時間 6,175 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
4,464 KB
testcase_01 AC 4 ms
4,480 KB
testcase_02 AC 5 ms
4,696 KB
testcase_03 AC 4 ms
4,560 KB
testcase_04 AC 4 ms
4,476 KB
testcase_05 AC 5 ms
4,560 KB
testcase_06 AC 5 ms
4,548 KB
testcase_07 AC 5 ms
4,544 KB
testcase_08 AC 5 ms
4,560 KB
testcase_09 AC 4 ms
4,548 KB
testcase_10 AC 5 ms
4,564 KB
testcase_11 AC 99 ms
4,540 KB
testcase_12 AC 104 ms
4,504 KB
testcase_13 AC 210 ms
4,544 KB
testcase_14 AC 205 ms
4,532 KB
testcase_15 AC 131 ms
4,504 KB
testcase_16 AC 153 ms
4,544 KB
testcase_17 AC 88 ms
4,604 KB
testcase_18 AC 118 ms
4,472 KB
testcase_19 AC 215 ms
4,528 KB
testcase_20 AC 219 ms
4,500 KB
testcase_21 AC 5 ms
4,508 KB
testcase_22 AC 5 ms
4,540 KB
testcase_23 AC 4 ms
4,576 KB
testcase_24 AC 5 ms
4,828 KB
testcase_25 AC 5 ms
4,696 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:6:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-Wreturn-type]
    6 | main()
      | ^~~~

ソースコード

diff #

#include<iostream>
#include<cmath>
using namespace std;
int Q;
double F[1<<17];
main()
{
	for(int i=1;i<1<<17;i++)F[i]=F[i-1]+log(i);
	cin>>Q;
	for(;Q--;)
	{
		int N,M,K;
		cin>>N>>M>>K;
		double now=F[N]-F[N-K]-F[K]-log(N-K+1)-(K-1)*log(M);
		cout<<(now<0?"Flush":"Straight")<<endl;
	}
}
0