結果
問題 | No.799 赤黒かーどげぇむ |
ユーザー |
![]() |
提出日時 | 2019-05-19 16:22:57 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 352 bytes |
コンパイル時間 | 469 ms |
コンパイル使用メモリ | 59,960 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-17 06:28:53 |
合計ジャッジ時間 | 1,252 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
//neko.cpp#include<iostream>#include<string>#include<math.h>#include<stdlib.h>#include<string>#include<cstdio>#include<stack>using namespace std;int main() {int a, b, c, d;cin >> a >> b >> c >> d;int sum = 0;for (int i = a; i <= b; i++) {for (int j = c; j <= d; j++) {if (i != j) {sum = sum + 1;}}}cout << sum;}