結果
問題 | No.799 赤黒かーどげぇむ |
ユーザー |
|
提出日時 | 2019-05-22 15:51:22 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 21 ms / 2,000 ms |
コード長 | 671 bytes |
コンパイル時間 | 1,701 ms |
コンパイル使用メモリ | 110,304 KB |
実行使用メモリ | 26,004 KB |
最終ジャッジ日時 | 2024-09-17 09:33:37 |
合計ジャッジ時間 | 2,251 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;namespace ConsoleApp2{class Program{static void Main(string[] args){int a, b, c, d;string[] s = Console.ReadLine().Split();a = int.Parse(s[0]);b = int.Parse(s[1]);c = int.Parse(s[2]);d = int.Parse(s[3]);int count = 0;for (int i = a; i < b+1; i++){for (int j = c; j < d+1; j++){if (i != j){count++;}}}Console.WriteLine(count);}}}