結果
| 問題 | No.939 and or |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-02 17:50:25 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 93 bytes |
| 記録 | |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 28,868 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-08 16:21:29 |
| 合計ジャッジ時間 | 1,135 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 30 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | a;main(b){scanf("%d%d",&a,&b);printf("%d",a&~b?0:(1LL<<__builtin_popcount(~a&b)>>1)^!(a^b));}
| ^
main.c: In function ‘main’:
main.c:1:11: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | a;main(b){scanf("%d%d",&a,&b);printf("%d",a&~b?0:(1LL<<__builtin_popcount(~a&b)>>1)^!(a^b));}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | a;main(b){scanf("%d%d",&a,&b);printf("%d",a&~b?0:(1LL<<__builtin_popcount(~a&b)>>1)^!(a^b));}
main.c:1:31: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | a;main(b){scanf("%d%d",&a,&b);printf("%d",a&~b?0:(1LL<<__builtin_popcount(~a&b)>>1)^!(a^b));}
| ^~~~~~
main.c:1:31: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:1:40: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
1 | a;main(b){scanf("%d%d",&a,&b);printf("%d",a&~b?0:(1LL<<__builtin_popcount(~a&b)>>1)^!(a^b));}
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int long long int
| %lld
ソースコード
a;main(b){scanf("%d%d",&a,&b);printf("%d",a&~b?0:(1LL<<__builtin_popcount(~a&b)>>1)^!(a^b));}