結果
問題 | No.250 atetubouのzetubou |
ユーザー |
![]() |
提出日時 | 2022-01-29 16:08:38 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 50 ms / 5,000 ms |
コード長 | 348 bytes |
コンパイル時間 | 175 ms |
コンパイル使用メモリ | 25,216 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-02 07:21:56 |
合計ジャッジ時間 | 1,663 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d", &q); | ^~~~~~~~~~~~~~~ main.c:10:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%lld %lld %lld", &d, &x, &t); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>int main(){int q;scanf("%d", &q);long long int d, x, t;long long int i, c;for (; q > 0; q--){scanf("%lld %lld %lld", &d, &x, &t);c = 1;for (i = 0; i < d - 1; i++){c = c * (x + i + 1) / (i + 1);if (c > t)break;}if (c > t)printf("ZETUBOU\n");elseprintf("AC\n");}return 0;}