結果
| 問題 |
No.250 atetubouのzetubou
|
| コンテスト | |
| ユーザー |
Rubikun
|
| 提出日時 | 2019-06-17 03:27:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 498 bytes |
| コンパイル時間 | 1,331 ms |
| コンパイル使用メモリ | 166,940 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 07:23:43 |
| 合計ジャッジ時間 | 4,619 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 15 WA * 5 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(x) (x).begin(),(x).end()
const int mod=1000000007;
int main(){
int Q;cin>>Q;
for(int i=0;i<Q;i++){
double a,b,c;cin>>a>>b>>c;
double l=0;
for(double i=b+a-1;i>b;i--){
l+=log10(i);
}
for(double i=1;i<=a-1;i++){
l-=log10(i);
}
l-=log10(c);
if(l>=-0.00000005) cout<<"ZETUBOU"<<endl;
else cout<<"AC"<<endl;
}
}
Rubikun