結果
問題 |
No.1511 A ? B Problem
|
ユーザー |
![]() |
提出日時 | 2025-03-27 16:52:36 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 152 bytes |
コンパイル時間 | 480 ms |
コンパイル使用メモリ | 24,192 KB |
実行使用メモリ | 5,888 KB |
最終ジャッジ日時 | 2025-03-27 16:52:37 |
合計ジャッジ時間 | 1,462 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d %d",&a,&b); | ^~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> void main(void){ int a,b; scanf("%d %d",&a,&b); int orNum = a|b; int andNum = a&b; printf("%d",orNum-andNum); }