結果
| 問題 |
No.799 赤黒かーどげぇむ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-01 19:50:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 349 bytes |
| コンパイル時間 | 260 ms |
| コンパイル使用メモリ | 38,016 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-03 05:46:05 |
| 合計ジャッジ時間 | 977 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <cstdio>
#include <cmath>
#define rep( i, n, m ) for(int i = ( n ); i < ( m ); i++)
typedef long long int ll;
int main( void ){
int a, b, c, d;
if (!scanf( "%d %d %d %d", &a, &b, &c, &d ))
return 0;
int count = 0;
rep( i, a, b + 1 ){
rep( j, c, d + 1 ){
if (i!=j){
count++;
}
}
}
printf("%d\n", count);
return 0;
}