結果
問題 |
No.799 赤黒かーどげぇむ
|
ユーザー |
![]() |
提出日時 | 2019-03-19 10:40:04 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 638 ms |
コンパイル使用メモリ | 67,416 KB |
最終ジャッジ日時 | 2025-01-06 23:33:36 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include<iostream> int main(int argc, char const *argv[]) { int a, b, c, d; std::cin >> a >> b >> c >> d; int ans = 0; for (int x = a; x <= b; x++) { for (int y = c; y <= d; y++) { if (x != y) ans++; } } std::cout << ans << std::endl; }