結果

問題 No.10 +か×か
ユーザー testestesttestestest
提出日時 2016-06-28 00:14:39
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 205 ms / 5,000 ms
コード長 158 bytes
コンパイル時間 782 ms
コンパイル使用メモリ 23,864 KB
実行使用メモリ 87,292 KB
最終ジャッジ日時 2023-08-21 06:19:45
合計ジャッジ時間 1,338 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 194 ms
86,004 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 205 ms
87,292 KB
testcase_07 AC 10 ms
5,524 KB
testcase_08 AC 20 ms
15,496 KB
testcase_09 AC 24 ms
20,016 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 x[1<<26];char p[60];f(i,s,t){x[i<<20|s]++?:s<=*x&&(t=x[i])?f(i+1,s+t,p[i]=43),f(i+1,s*t,p[i]--):s-*x|t?:!puts(p+2);}main(i){for(;~scanf("%d",x-i--););f(1,0);}
 ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
main.c:1:21: warning: return type defaults to ‘int’ [-Wimplicit-int]
 x[1<<26];char p[60];f(i,s,t){x[i<<20|s]++?:s<=*x&&(t=x[i])?f(i+1,s+t,p[i]=43),f(i+1,s*t,p[i]--):s-*x|t?:!puts(p+2);}main(i){for(;~scanf("%d",x-i--););f(1,0);}
                     ^
main.c: In function ‘f’:
main.c:1:21: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:21: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:21: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:106: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 x[1<<26];char p[60];f(i,s,t){x[i<<20|s]++?:s<=*x&&(t=x[i])?f(i+1,s+t,p[i]=43),f(i+1,s*t,p[i]--):s-*x|t?:!puts(p+2);}main(i){for(;~scanf("%d",x-i--););f(1,0);}
                                                                                                          ^~~~
main.c: At top level:
main.c:1:117: warning: return type defaults to ‘int’ [-Wimplicit-int]
 x[1<<26];char p[60];f(i,s,t){x[i<<20|s]++?:s<=*x&&(t=x[i])?f(i+1,s+t,p[i]=43),f(i+1,s*t,p[i]--):s-*x|t?:!puts(p+2);}main(i){for(;~scanf("%d",x-i--););f(1,0);}
                                                                                                                     ^~~~
main.c: In function ‘main’:
main.c:1:117: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:131: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 x[1<<26];char p[60];f(i,s,t){x[i<<20|s]++?:s<=*x&&(t=x[i])?f(i+1,s+t,p[i]=43),f(i+1,s*t,p[i]--):s-*x|t?:!puts(p+2);}main(i){for(;~scanf("%d",x-i--););f(1,0);}
                                          

ソースコード

diff #

x[1<<26];char p[60];f(i,s,t){x[i<<20|s]++?:s<=*x&&(t=x[i])?f(i+1,s+t,p[i]=43),f(i+1,s*t,p[i]--):s-*x|t?:!puts(p+2);}main(i){for(;~scanf("%d",x-i--););f(1,0);}
0