結果
問題 | No.799 赤黒かーどげぇむ |
ユーザー |
![]() |
提出日時 | 2019-03-19 16:38:29 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 27 ms / 2,000 ms |
コード長 | 742 bytes |
コンパイル時間 | 5,849 ms |
コンパイル使用メモリ | 109,596 KB |
実行使用メモリ | 26,200 KB |
最終ジャッジ日時 | 2024-09-14 00:11:04 |
合計ジャッジ時間 | 2,324 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
コンパイルメッセージ
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;namespace contest{class Program{static void Main(string[] args){string[] values = Console.ReadLine().Split(' ');int A = int.Parse(values[0]);int B = int.Parse(values[1]);int C = int.Parse(values[2]);int D = int.Parse(values[3]);int pat = 0;for (int i = A; i <= B; i++) {for (int j = C; j <= D; j++){if (i != j) pat++;}}Console.WriteLine(pat);Console.ReadLine();}}}