結果
問題 | No.799 赤黒かーどげぇむ |
ユーザー |
![]() |
提出日時 | 2019-12-05 06:09:23 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 1,517 ms |
コンパイル使用メモリ | 28,928 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-16 01:54:03 |
合計ジャッジ時間 | 2,055 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <stdio.h>int main() {int a, b, c, d;scanf("%d %d %d %d", &a, &b, &c, &d);int cnt=0;for (int i=a; i<=b; i++) {for (int j=c; j<=d; j++) {if (i==j) cnt++;}}printf("%d\n", (b-a+1)*(d-c+1)-cnt);return 0;}