結果
| 問題 | No.4 おもりと天秤 | 
| コンテスト | |
| ユーザー | 👑  testestest | 
| 提出日時 | 2016-02-11 22:37:13 | 
| 言語 | C90 (gcc 12.3.0) | 
| 結果 | 
                                RE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 119 bytes | 
| コンパイル時間 | 423 ms | 
| コンパイル使用メモリ | 37,120 KB | 
| 実行使用メモリ | 7,328 KB | 
| 最終ジャッジ日時 | 2025-03-11 15:44:35 | 
| 合計ジャッジ時間 | 1,379 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | RE * 23 | 
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | w[9999];i;main(n){for(;~scanf("%d",&n);)for(*w+=n*i,i=1e4;i--;w[i+n]+=w[i]);n=!puts("impossible"+(w[-*w/2]&&~*w%2)*2);}
      | ^
main.c:1:9: warning: data definition has no type or storage class
    1 | w[9999];i;main(n){for(;~scanf("%d",&n);)for(*w+=n*i,i=1e4;i--;w[i+n]+=w[i]);n=!puts("impossible"+(w[-*w/2]&&~*w%2)*2);}
      |         ^
main.c: In function 'main':
main.c:1:25: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | w[9999];i;main(n){for(;~scanf("%d",&n);)for(*w+=n*i,i=1e4;i--;w[i+n]+=w[i]);n=!puts("impossible"+(w[-*w/2]&&~*w%2)*2);}
      |                         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | w[9999];i;main(n){for(;~scanf("%d",&n);)for(*w+=n*i,i=1e4;i--;w[i+n]+=w[i]);n=!puts("impossible"+(w[-*w/2]&&~*w%2)*2);}
            
            ソースコード
w[9999];i;main(n){for(;~scanf("%d",&n);)for(*w+=n*i,i=1e4;i--;w[i+n]+=w[i]);n=!puts("impossible"+(w[-*w/2]&&~*w%2)*2);}
            
            
            
        