結果

問題 No.1432 Not Xor
コンテスト
ユーザー Yuzu Mashiro
提出日時 2021-09-28 07:22:28
言語 Nim
(2.2.8)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 314 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,858 ms
コンパイル使用メモリ 70,540 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-03-28 21:09:25
合計ジャッジ時間 3,582 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#region ccfuncs
import strutils

type TypeInt = typedesc[int]

proc read(a: TypeInt, b: TypeInt): (int, int) {.used.} =
    let data = stdin.readLine.split
    (data[0].parseInt, data[1].parseInt)

proc answer(n: int) {.used.} =
    echo n
#endregion

let (a, b) = read(int, int)

answer:
    (a or b) + (a and b)
0