結果
| 問題 |
No.250 atetubouのzetubou
|
| コンテスト | |
| ユーザー |
FF256grhy
|
| 提出日時 | 2015-07-24 23:46:38 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 388 bytes |
| コンパイル時間 | 97 ms |
| コンパイル使用メモリ | 22,656 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-16 00:28:54 |
| 合計ジャッジ時間 | 2,173 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | WA * 20 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d", &q);
| ~~~~~^~~~~~~~~~
main.cpp:8:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%d%d%lld", &d, &x, &t);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void) {
int i, q, d, x;
long long int t;
scanf("%d", &q);
for(i = 0; i < q; i++) {
scanf("%d%d%lld", &d, &x, &t);
long long int a = 1;
int j;
for(j = 1; j < d; j++) { a *= (x + j); }
for(j = 1; j < d; j++) { a /= j; }
printf("%s\n", (a <= t) ? "AC" : "ZETUBOU");
}
return 0;
}
// これであってんのか知らねえけど投げてみる
FF256grhy