結果
| 問題 | No.682 Average | 
| コンテスト | |
| ユーザー |  vrjfsyi | 
| 提出日時 | 2018-05-13 12:41:26 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 485 bytes | 
| コンパイル時間 | 1,016 ms | 
| コンパイル使用メモリ | 71,760 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-28 09:59:26 | 
| 合計ジャッジ時間 | 1,173 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 13 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <array>
#include <map>
#include <stack>
#include <queue>
#include <set>
#include <cmath>
#include <numeric>
using namespace std;
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int A, B;
    cin >> A >> B;
    int count = 0;
    for (int i = A; i <= B; ++i) {
        if ((A + B + i) % 3 == 0) {
            count += 1;
        }
    }
    cout << count << "\n";
}
            
            
            
        