結果
問題 |
No.857 素振り
|
ユーザー |
|
提出日時 | 2019-08-16 02:45:09 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 378 bytes |
コンパイル時間 | 776 ms |
コンパイル使用メモリ | 107,704 KB |
実行使用メモリ | 26,020 KB |
最終ジャッジ日時 | 2024-09-19 16:59:45 |
合計ジャッジ時間 | 1,438 ms |
ジャッジサーバーID (参考情報) |
judge3 / 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 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); } }