結果
問題 | No.598 オーバーフローファンタジー |
ユーザー | kotatsugame |
提出日時 | 2017-11-25 23:32:06 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 110 bytes |
コンパイル時間 | 611 ms |
コンパイル使用メモリ | 27,348 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-08-18 06:44:20 |
合計ジャッジ時間 | 1,440 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | AC | 1 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 1 ms
4,380 KB |
testcase_04 | AC | 1 ms
4,380 KB |
testcase_05 | AC | 1 ms
4,376 KB |
testcase_06 | AC | 0 ms
4,376 KB |
testcase_07 | AC | 1 ms
4,376 KB |
testcase_08 | AC | 1 ms
4,376 KB |
testcase_09 | AC | 1 ms
4,376 KB |
testcase_10 | AC | 1 ms
4,384 KB |
testcase_11 | AC | 1 ms
4,376 KB |
testcase_12 | AC | 0 ms
4,376 KB |
testcase_13 | WA | - |
testcase_14 | AC | 0 ms
4,376 KB |
testcase_15 | AC | 1 ms
4,376 KB |
testcase_16 | AC | 1 ms
4,376 KB |
testcase_17 | AC | 1 ms
4,376 KB |
testcase_18 | AC | 1 ms
4,376 KB |
testcase_19 | AC | 1 ms
4,384 KB |
testcase_20 | AC | 1 ms
4,376 KB |
testcase_21 | AC | 1 ms
4,380 KB |
testcase_22 | AC | 0 ms
4,380 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 1 ms
4,380 KB |
testcase_26 | AC | 1 ms
4,376 KB |
testcase_27 | AC | 1 ms
4,380 KB |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
コンパイルメッセージ
main.c:1:14: 警告: 戻り値の型をデフォルトの ‘int’ にします [-Wimplicit-int] 1 | long a,b,n,x;main(){scanf("%ld%ld%ld%ld",&n,&x,&a,&b);printf("%.f",fmin(1L*((1<<--n)-x+b-1)/b,1L*(x+a-1)/a));} | ^~~~ main.c: 関数 ‘main’ 内: main.c:1:21: 警告: 関数 ‘scanf’ の暗黙的な宣言です [-Wimplicit-function-declaration] 1 | long a,b,n,x;main(){scanf("%ld%ld%ld%ld",&n,&x,&a,&b);printf("%.f",fmin(1L*((1<<--n)-x+b-1)/b,1L*(x+a-1)/a));} | ^~~~~ main.c:1:1: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | long a,b,n,x;main(){scanf("%ld%ld%ld%ld",&n,&x,&a,&b);printf("%.f",fmin(1L*((1<<--n)-x+b-1)/b,1L*(x+a-1)/a));} main.c:1:21: 警告: 組み込み関数 ‘scanf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch] 1 | long a,b,n,x;main(){scanf("%ld%ld%ld%ld",&n,&x,&a,&b);printf("%.f",fmin(1L*((1<<--n)-x+b-1)/b,1L*(x+a-1)/a));} | ^~~~~ main.c:1:21: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:55: 警告: 関数 ‘printf’ の暗黙的な宣言です [-Wimplicit-function-declaration] 1 | long a,b,n,x;main(){scanf("%ld%ld%ld%ld",&n,&x,&a,&b);printf("%.f",fmin(1L*((1<<--n)-x+b-1)/b,1L*(x+a-1)/a));} | ^~~~~~ main.c:1:55: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:55: 警告: 組み込み関数 ‘printf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch] main.c:1:55: 備考: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:68: 警告: 関数 ‘fmin’ の暗黙的な宣言です [-Wimplicit-function-declaration] 1 | long a,b,n,x;main(){scanf("%ld%ld%ld%ld",&n,&x,&a,&b);printf("%.f",fmin(1L*((1<<--n)-x+b-1)/b,1L*(x+a-1)/a));} |
ソースコード
long a,b,n,x;main(){scanf("%ld%ld%ld%ld",&n,&x,&a,&b);printf("%.f",fmin(1L*((1<<--n)-x+b-1)/b,1L*(x+a-1)/a));}