結果

問題 No.2323 Nafmo、A+Bをする
ユーザー dm99xdm99x
提出日時 2023-07-15 03:36:32
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 1,968 ms
コンパイル使用メモリ 26,624 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-16 12:16:22
合計ジャッジ時間 1,111 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>

int main(void) {
	char x[32], y[32];
	scanf("%s %s", &x, &y);
	long a = strtol(x, NULL, 2);
	long b = strtol(y, NULL, 2);
	long ans = a ^ b;
	printf("%ld\n", ans);
	
	return 0;
}
0