結果
| 問題 |
No.857 素振り
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-29 17:47:24 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 1,000 ms |
| コード長 | 1,612 bytes |
| コンパイル時間 | 868 ms |
| コンパイル使用メモリ | 111,236 KB |
| 実行使用メモリ | 17,664 KB |
| 最終ジャッジ日時 | 2024-09-14 21:33:46 |
| 合計ジャッジ時間 | 1,636 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
コンパイルメッセージ
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;
using System.IO;
using System.Runtime.CompilerServices;
//using System.Web.UI;
using Debug = System.Diagnostics.Debug;
// using System.Drawing.Primitives;
//using System.Drawing;
using System.Windows;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
new Solver().Solve();
}
}
class Solver
{
public const double inf = double.PositiveInfinity;
readonly TextWriter error = Console.Error;
private void Rep(int n_, Action<int> action)
{
for (int i = 0; i < n_; i++)
{
action(i);
}
}
public string ReadLine()
{
return Console.ReadLine();
}
public string ReadNext()
{
var s = "";
while (true)
{
var c = Console.Read();
if (c == ' ' || c == '\n') break;
s += (char)c;
}
return s;
}
public long ReadLong()
{
return Stol(ReadNext());
}
public long Stol(string s)
{
return long.Parse(s);
}
long n;
public void Solve()
{
long x = ReadLong();
long y = ReadLong();
long z = ReadLong();
var res = z;
if (x <= z) res--;
if (y <= z) res--;
Console.WriteLine(res);
}
}
}