結果

問題 No.250 atetubouのzetubou
ユーザー naimonon77naimonon77
提出日時 2016-02-17 13:34:31
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 791 bytes
コンパイル時間 1,219 ms
コンパイル使用メモリ 159,456 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-22 06:12:28
合計ジャッジ時間 2,543 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
4,348 KB
testcase_01 AC 4 ms
4,348 KB
testcase_02 AC 24 ms
4,348 KB
testcase_03 AC 27 ms
4,348 KB
testcase_04 AC 23 ms
4,348 KB
testcase_05 AC 25 ms
4,348 KB
testcase_06 AC 19 ms
4,348 KB
testcase_07 AC 10 ms
4,348 KB
testcase_08 AC 23 ms
4,348 KB
testcase_09 AC 17 ms
4,348 KB
testcase_10 AC 24 ms
4,348 KB
testcase_11 AC 15 ms
4,348 KB
testcase_12 AC 23 ms
4,348 KB
testcase_13 AC 13 ms
4,348 KB
testcase_14 AC 2 ms
4,348 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 2 ms
4,348 KB
testcase_21 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES

#ifdef __unix__
#include <bits/stdc++.h>
#else
#include "bits\stdc++.h"
#endif
#include <vector>
#include <set>
#include <string>
#include <queue>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;

ull pow(ull x,ull n) {
   ull res = 1;
   while(n > 0) {
      if(n&1) res = res * x;
      x = x * x;
      n >>= 1;
   }
   return res;
}

int main() {
  int i,j,k;
  int q;
  int d,x;
  double t;
  cin >> q;
  while(cin >> d >> x >> t) {
    double a=1;
    for(i=0;i<x;i++) {
      a *= d+i;
      a /= i+1;
      if(a > t) goto end;
    }
  end:
    if(a > t) puts("ZETUBOU");
    else puts("AC");
  }
  return 0;
}
0