結果

問題 No.857 素振り
ユーザー boya978boya978
提出日時 2019-08-16 03:07:02
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 390 bytes
コンパイル時間 885 ms
コンパイル使用メモリ 106,332 KB
実行使用メモリ 24,208 KB
最終ジャッジ日時 2023-10-19 21:23:35
合計ジャッジ時間 1,817 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
24,208 KB
testcase_01 AC 26 ms
24,208 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
public class Program
{
    static void Main()
    {

    string[] data = Console.ReadLine().Split();
    int[] days = new int[3];
    int answer = 0;
    
    for(int i=0;i<3;i++)
        days[i]=int.Parse(data[i]);
        
    for(int i=1; i<days[2];i++)
        if(i!=days[0] || i!=days[1])
            answer += 1;
            
    Console.Write(answer);

        
    }
}
0