結果
問題 | No.1027 U+1F4A0 |
ユーザー |
![]() |
提出日時 | 2020-04-18 09:18:43 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 782 ms |
コンパイル使用メモリ | 111,656 KB |
実行使用メモリ | 26,112 KB |
最終ジャッジ日時 | 2024-10-03 22:59:50 |
合計ジャッジ時間 | 2,150 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var d1 = int.Parse(line[0]); var d2 = int.Parse(line[1]); int ans; if (2 * d1 == d2) ans = 4; else if (2 * d1 > d2 && d1 < d2) ans = 8; else if (d1 == d2) ans = 4; else ans = 0; Console.WriteLine(ans); } }