結果
| 問題 | 
                            No.333 門松列を数え上げ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             No
                         | 
                    
| 提出日時 | 2016-01-15 22:55:24 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 24 ms / 2,000 ms | 
| コード長 | 579 bytes | 
| コンパイル時間 | 720 ms | 
| コンパイル使用メモリ | 108,308 KB | 
| 実行使用メモリ | 26,004 KB | 
| 最終ジャッジ日時 | 2024-09-19 19:23:37 | 
| 合計ジャッジ時間 | 1,427 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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 Yuki
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(); ;
            int a = int.Parse(s[0]);
            int b = int.Parse(s[1]);
            int ans;
            if (a > b)
            {
                ans = 2000000000 - b - 1;
            }
            else
            {
                ans = b - 2;
            }
            Console.WriteLine(ans);
        }
    }
}
            
            
            
        
            
No