結果
問題 | No.333 門松列を数え上げ |
ユーザー | kimny |
提出日時 | 2017-12-13 10:03:29 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 505 bytes |
コンパイル時間 | 1,987 ms |
コンパイル使用メモリ | 103,852 KB |
実行使用メモリ | 23,812 KB |
最終ジャッジ日時 | 2023-08-21 01:23:12 |
合計ジャッジ時間 | 3,239 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 59 ms
21,764 KB |
testcase_01 | AC | 59 ms
21,752 KB |
testcase_02 | AC | 60 ms
23,812 KB |
testcase_03 | AC | 59 ms
21,780 KB |
testcase_04 | AC | 58 ms
21,776 KB |
testcase_05 | AC | 59 ms
21,932 KB |
testcase_06 | AC | 59 ms
21,820 KB |
testcase_07 | AC | 59 ms
21,724 KB |
testcase_08 | AC | 60 ms
21,948 KB |
コンパイルメッセージ
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(); } } }