結果
問題 |
No.857 素振り
|
ユーザー |
|
提出日時 | 2019-08-16 03:07:02 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 390 bytes |
コンパイル時間 | 774 ms |
コンパイル使用メモリ | 108,208 KB |
実行使用メモリ | 27,752 KB |
最終ジャッジ日時 | 2024-09-19 17:26:05 |
合計ジャッジ時間 | 1,571 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | WA * 2 RE * 6 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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); } }