結果

問題 No.581 XOR
ユーザー Crowea
提出日時 2019-01-22 20:08:39
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 374 bytes
コンパイル時間 1,303 ms
コンパイル使用メモリ 102,528 KB
実行使用メモリ 17,792 KB
最終ジャッジ日時 2024-09-16 04:18:07
合計ジャッジ時間 2,271 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 2 RE * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
    static void Main(string[] args)
    {
        var line = Console.ReadLine().Split(' ');
        var binA = long.Parse(Convert.ToString(int.Parse(line[0]), 2));
        var binC = long.Parse(Convert.ToString(int.Parse(line[1]), 2));
        var binB = (binA ^ binC).ToString();
        Console.WriteLine(Convert.ToInt32(binB, 2));
    }
}

0