結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー | hoshiika |
提出日時 | 2020-07-17 21:46:46 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 60 ms / 1,000 ms |
コード長 | 765 bytes |
コンパイル時間 | 3,707 ms |
コンパイル使用メモリ | 105,900 KB |
実行使用メモリ | 23,816 KB |
最終ジャッジ日時 | 2023-08-20 06:06:33 |
合計ジャッジ時間 | 5,630 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 58 ms
21,940 KB |
testcase_01 | AC | 60 ms
23,784 KB |
testcase_02 | AC | 60 ms
23,816 KB |
testcase_03 | AC | 59 ms
21,852 KB |
testcase_04 | AC | 58 ms
21,836 KB |
testcase_05 | AC | 58 ms
21,864 KB |
testcase_06 | AC | 59 ms
21,832 KB |
testcase_07 | AC | 60 ms
21,836 KB |
testcase_08 | AC | 60 ms
23,796 KB |
testcase_09 | AC | 59 ms
21,860 KB |
testcase_10 | AC | 60 ms
21,756 KB |
testcase_11 | AC | 59 ms
21,844 KB |
testcase_12 | AC | 59 ms
21,912 KB |
testcase_13 | AC | 59 ms
21,840 KB |
testcase_14 | AC | 60 ms
23,812 KB |
testcase_15 | AC | 60 ms
21,980 KB |
testcase_16 | AC | 58 ms
19,856 KB |
コンパイルメッセージ
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 static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace AtCoder { public class Program { public static void Main(string[] args) { //var s = Conasole.ReadLine().Split(' ') var s = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long gcd = Gcd(s[0], s[1]); double root = Sqrt(gcd); string str = "Even"; if (root == (long)root) { str = "Odd"; } WriteLine(str); Out.Flush(); } public static long Gcd(long n, long m) { return n % m == 0 ? m : Gcd(m, n % m); } } }