結果
問題 | No.857 素振り |
ユーザー | ixTL255 |
提出日時 | 2019-08-13 21:35:32 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 29 ms / 1,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 928 ms |
コンパイル使用メモリ | 110,124 KB |
実行使用メモリ | 25,412 KB |
最終ジャッジ日時 | 2023-10-19 17:16:32 |
合計ジャッジ時間 | 1,700 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 29 ms
25,400 KB |
testcase_01 | AC | 29 ms
25,400 KB |
testcase_02 | AC | 28 ms
25,400 KB |
testcase_03 | AC | 28 ms
25,400 KB |
testcase_04 | AC | 28 ms
25,412 KB |
testcase_05 | AC | 29 ms
25,412 KB |
testcase_06 | AC | 29 ms
25,412 KB |
testcase_07 | AC | 28 ms
25,412 KB |
testcase_08 | AC | 29 ms
25,412 KB |
testcase_09 | AC | 28 ms
25,412 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; public class Yuki857 { public static void Main() { var xyz = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList(); var ans = xyz[2]; if(xyz[0] <= xyz[2]) ans -= 1; if(xyz[1] <= xyz[2]) ans -= 1; Console.WriteLine(ans); } }