結果
| 問題 | 
                            No.682 Average
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kpinkcat
                         | 
                    
| 提出日時 | 2023-08-19 17:15:39 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 268 bytes | 
| コンパイル時間 | 860 ms | 
| コンパイル使用メモリ | 92,736 KB | 
| 最終ジャッジ日時 | 2025-02-16 11:38:49 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 13 | 
ソースコード
#include<iostream>
#include<map>
#include<vector>
#include <algorithm>
#include<math.h>
using namespace std;
int main()
{
    int a, b, cnt = 0;
    cin >> a >> b;
    for (int i = a; i <= b; i++){
        if (!((a + b + i)%3)) cnt++;
    }
    cout << cnt << endl;
}
            
            
            
        
            
kpinkcat