結果
| 問題 |
No.250 atetubouのzetubou
|
| コンテスト | |
| ユーザー |
Rubikun
|
| 提出日時 | 2019-06-17 03:24:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 477 bytes |
| コンパイル時間 | 1,417 ms |
| コンパイル使用メモリ | 166,788 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 07:16:06 |
| 合計ジャッジ時間 | 4,967 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| 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,r=log10(c);
for(double i=b+a-1;i>b;i--){
l+=log10(i);
}
for(double i=1;i<=a-1;i++){
r+=log10(i);
}
if(l>r) cout<<"ZETUBOU"<<endl;
else cout<<"AC"<<endl;
}
}
Rubikun