結果
問題 |
No.1220 yukipoker
|
ユーザー |
|
提出日時 | 2020-10-09 18:36:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 225 ms / 2,000 ms |
コード長 | 289 bytes |
コンパイル時間 | 733 ms |
コンパイル使用メモリ | 68,224 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 07:53:04 |
合計ジャッジ時間 | 4,856 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 6 | main() | ^~~~
ソースコード
#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; } }