結果
問題 | No.333 門松列を数え上げ |
ユーザー |
![]() |
提出日時 | 2016-01-15 22:52:32 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 21 ms / 2,000 ms |
コード長 | 672 bytes |
コンパイル時間 | 830 ms |
コンパイル使用メモリ | 108,088 KB |
実行使用メモリ | 17,920 KB |
最終ジャッジ日時 | 2024-09-19 19:22:13 |
合計ジャッジ時間 | 1,595 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;if (b == 0){ans = 0;}}Console.WriteLine(ans);}}}