結果
問題 |
No.411 昇順昇順ソート
|
ユーザー |
|
提出日時 | 2016-08-13 18:11:37 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 310 bytes |
コンパイル時間 | 898 ms |
コンパイル使用メモリ | 105,216 KB |
実行使用メモリ | 19,456 KB |
最終ジャッジ日時 | 2024-11-07 16:19:53 |
合計ジャッジ時間 | 2,993 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | WA * 30 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; class Program { static void Main() { var a = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray(); if(a[1]==0) Console.WriteLine(0); else if(a[0]>2&&a[0]==a[1])Console.WriteLine(a[0]-2); else Console.WriteLine(a[0]-1); } }