結果

問題 No.10 +か×か
ユーザー 👑 testestest
提出日時 2016-06-28 00:14:39
言語 C90
(gcc 12.3.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 158 bytes
コンパイル時間 514 ms
コンパイル使用メモリ 35,968 KB
実行使用メモリ 87,552 KB
最終ジャッジ日時 2025-01-30 10:32:55
合計ジャッジ時間 1,783 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 RE * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | 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:131: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | 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: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 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