結果
問題 | No.2088 数当てゲーム |
ユーザー |
|
提出日時 | 2022-09-30 21:53:27 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 452 bytes |
コンパイル時間 | 3,834 ms |
コンパイル使用メモリ | 101,632 KB |
実行使用メモリ | 17,792 KB |
最終ジャッジ日時 | 2024-12-22 23:22:08 |
合計ジャッジ時間 | 5,501 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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 == 1){WriteLine(b);}else{WriteLine(- b / (a - 1));}}}