結果

問題 No.190 Dry Wet Moist
コンテスト
ユーザー ciel
提出日時 2015-04-22 05:04:18
言語 C90(gcc12)
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
RE  
実行時間 -
コード長 276 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 148 ms
コンパイル使用メモリ 30,020 KB
最終ジャッジ日時 2026-02-23 18:18:35
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 28
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:2:29: warning: multi-character character constant [-Wmultichar]
    2 | c(int*a){return*a-*2[&a];}v['abc'],N,R,l;main(h){for(;~scanf("%d",&v[N++]););qsort(v+1,N-=2,4,c);Z(R++|l++|h--,h--,<)Z(R++|l++|h--,l++,>)Z(v[l++]+v[h]||R++|h--,h--,<=)}
      |                             ^~~~~
main.c:2:27: warning: data definition has no type or storage class
    2 | c(int*a){return*a-*2[&a];}v['abc'],N,R,l;main(h){for(;~scanf("%d",&v[N++]););qsort(v+1,N-=2,4,c);Z(R++|l++|h--,h--,<)Z(R++|l++|h--,l++,>)Z(v[l++]+v[h]||R++|h--,h--,<=)}
      |                           ^
main.c: In function ‘main’:
main.c:2:56: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    2 | c(int*a){return*a-*2[&a];}v['abc'],N,R,l;main(h){for(;~scanf("%d",&v[N++]););qsort(v+1,N-=2,4,c);Z(R++|l++|h--,h--,<)Z(R++|l++|h--,l++,>)Z(v[l++]+v[h]||R++|h--,h--,<=)}
      |                                                        ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | #define Z(C,D,P)for(R=0,l=1,h=N;l<h;C){for(;l<h;D)if(v[l]+v[h]P 0)break;if(l==h)break;};l=!printf("%d ",R);
main.c:1:92: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
    1 | #define Z(C,D,P)for(R=0,l=1,h=N;l<h;C){for(;l<h;D)if(v[l]+v[h]P 0)break;if(l==h)break;};l=!printf("%d ",R);
      |                                                                                            ^~~~~~
main.c:2:98: note: in expansion of macro ‘Z’
    2 | c(int*a){return*a-*2[&a];}v['abc'],N,R,l;main(h){for(;~scanf("%d",&v[N++]););qsort(v+1,N-=2,4,c);Z(R++|l++|h--,h--,<)Z(R++|l++|h--,l++,>)Z(v[l++]+v[h]||R++|h--,h--,<=)}
      |                                                                                                  ^
main.c:1:92: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
    1 | #define Z(C,D,P)for(R=0,l=1,h=N;l<h

ソースコード

diff #
raw source code

#define Z(C,D,P)for(R=0,l=1,h=N;l<h;C){for(;l<h;D)if(v[l]+v[h]P 0)break;if(l==h)break;};l=!printf("%d ",R);
c(int*a){return*a-*2[&a];}v['abc'],N,R,l;main(h){for(;~scanf("%d",&v[N++]););qsort(v+1,N-=2,4,c);Z(R++|l++|h--,h--,<)Z(R++|l++|h--,l++,>)Z(v[l++]+v[h]||R++|h--,h--,<=)}
0