結果
問題 | No.780 オフ会 |
ユーザー |
![]() |
提出日時 | 2019-02-02 12:21:12 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 278 bytes |
コンパイル時間 | 2,799 ms |
コンパイル使用メモリ | 110,388 KB |
実行使用メモリ | 27,268 KB |
最終ジャッジ日時 | 2024-11-27 09:26:56 |
合計ジャッジ時間 | 4,406 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
コンパイルメッセージ
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 arr = Console.ReadLine().Split().Select(int.Parse).ToArray();var a = arr[0] + 1;var b = arr[1];Console.WriteLine(a <= b ? "YES" : "NO");Console.WriteLine(Math.Abs(a - b));}}