結果
問題 | No.857 素振り |
ユーザー | boya978 |
提出日時 | 2019-08-16 02:45:09 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 378 bytes |
コンパイル時間 | 836 ms |
コンパイル使用メモリ | 106,096 KB |
実行使用メモリ | 24,192 KB |
最終ジャッジ日時 | 2023-10-19 20:53:49 |
合計ジャッジ時間 | 2,012 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 25 ms
24,144 KB |
testcase_01 | AC | 25 ms
24,144 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.
ソースコード
using System; public class Hello{ public 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); } }