結果
| 問題 |
No.250 atetubouのzetubou
|
| コンテスト | |
| ユーザー |
a
|
| 提出日時 | 2016-07-09 05:17:53 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 388 bytes |
| コンパイル時間 | 212 ms |
| コンパイル使用メモリ | 31,872 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 08:06:35 |
| 合計ジャッジ時間 | 1,616 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 20 |
ソースコード
#include <cstdio>
using namespace std;
typedef long long ll;
int main(void) {
int q;
scanf("%d", &q);
for (int iii = 0; iii < q; iii++) {
int d, x;
ll t;
scanf("%d%d%lld", &d, &x, &t);
double s = 1;
for (int i = x; i >= x-d+2; i--) {
s *= (x+1);
if (s > t) break;
}
printf("%.0f\n", s);
puts(s>t ? "ZETUBOU" : "AC");
}
return 0;
}
a