結果
問題 | No.333 門松列を数え上げ |
ユーザー |
![]() |
提出日時 | 2017-12-13 10:03:29 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 505 bytes |
コンパイル時間 | 869 ms |
コンパイル使用メモリ | 111,784 KB |
実行使用メモリ | 27,260 KB |
最終ジャッジ日時 | 2024-12-14 09:03:31 |
合計ジャッジ時間 | 1,648 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoder_333 { class Program { static void Main(string[] args) { int[] h = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); if (h[0] < h[1]) { Console.WriteLine(h[1] - 2); } else { Console.WriteLine(2000000000 - h[1] - 1); } Console.ReadLine(); } } }