結果

問題 No.682 Average
ユーザー yuki0217yuki0217
提出日時 2018-06-26 12:50:42
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 53,956 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 22:52:30
合計ジャッジ時間 992 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int A,B;
int main() {
	cin >> A >> B;
	int cnt=0;
	for(int i=A;i<=B;i++){
	    int x=(A+i+B);
	    if(x%3==0){
	        cnt++;
	    }
	}
	cout << cnt << endl;
	return 0;
}
0