結果
| 問題 | No.682 Average | 
| コンテスト | |
| ユーザー |  aguroshou | 
| 提出日時 | 2018-05-11 22:26:06 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 290 bytes | 
| コンパイル時間 | 442 ms | 
| コンパイル使用メモリ | 56,520 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-28 04:07:41 | 
| 合計ジャッジ時間 | 1,365 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 13 | 
ソースコード
#include<iostream>
#include <algorithm>
#include<string>
using namespace std;
int main()
{
	int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0;
	int n, s;
	cin >> a;
	cin >> b;
	for ( d = a; d <= b; d++)
	{
		if ((a+d+b)%3==0)
		{
			e++;
		}
	}
	cout << e << endl;
	return 0;
}
            
            
            
        