結果
| 問題 | 
                            No.799 赤黒かーどげぇむ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             funakoshi
                         | 
                    
| 提出日時 | 2019-08-22 14:36:24 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 472 bytes | 
| コンパイル時間 | 1,601 ms | 
| コンパイル使用メモリ | 29,312 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-12 09:47:04 | 
| 合計ジャッジ時間 | 1,479 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 20 | 
ソースコード
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    int redstart,redend,blackstart,blackend,count=0;
    scanf("%d %d %d %d",&redstart,&redend,&blackstart,&blackend);
    for(int i=redstart;i<=redend;i++)
    {
        for(int j=blackstart;j<=blackend;j++)
        {
            if(i==j)
            {
                continue;
            }
            count++;
        }
    }
    printf("%d",count);
}
            
            
            
        
            
funakoshi