結果
問題 | No.2323 Nafmo、A+Bをする |
ユーザー | tnakao0123 |
提出日時 | 2023-06-24 00:18:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 461 bytes |
コンパイル時間 | 271 ms |
コンパイル使用メモリ | 40,320 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 04:04:52 |
合計ジャッジ時間 | 1,132 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
/* -*- coding: utf-8 -*- * * 2323.cc: No.2323 Nafmo、A+Bをする - yukicoder */ #include<cstdio> #include<algorithm> using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ int readbin() { char s[64]; scanf("%s", s); int b = 0; for (int i = 0; s[i]; i++) b = (b << 1) | (s[i] - '0'); return b; } /* main */ int main() { int a = readbin(), b = readbin(); printf("%d\n", a ^ b); return 0; }