結果
| 問題 | No.1198 お菓子配り-1 |
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2020-09-24 17:25:48 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 2,440 ms |
| コンパイル使用メモリ | 102,656 KB |
| 実行使用メモリ | 18,432 KB |
| 最終ジャッジ日時 | 2024-06-28 04:59:34 |
| 合計ジャッジ時間 | 2,345 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System.Numerics;
using System;
public class Hello
{
static void Main()
{
var n = BigInteger.Parse(Console.ReadLine().Trim());
getAns(n);
}
static void getAns(BigInteger n)
{
if (n == 1 | n == 4) { Console.WriteLine(-1); return; }
Console.WriteLine(n % 4 == 0 | n % 2 != 0 ? 1 : -1);
}
}
bluemegane