結果

問題 No.2088 数当てゲーム
ユーザー kakel-san
提出日時 2022-09-30 21:49:07
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 446 bytes
コンパイル時間 913 ms
コンパイル使用メモリ 102,400 KB
実行使用メモリ 19,768 KB
最終ジャッジ日時 2024-12-22 23:17:17
合計ジャッジ時間 4,085 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 14
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;

class Program
{
    static long NN => long.Parse(ReadLine());
    static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var a = NN;
        var b = NN;
        if (a == 0)
        {
            WriteLine(b);
        }
        else
        {
            WriteLine(- b / a);
        }
    }
}
0