結果
問題 | No.682 Average |
ユーザー |
![]() |
提出日時 | 2018-05-12 09:01:09 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 1,318 ms |
コンパイル使用メモリ | 159,148 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 09:30:28 |
合計ジャッジ時間 | 1,845 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; using i64 = long long; #define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++) int a,b; int main(){ cin >> a >> b; int ans = 0; rep(i,a,b){ if((a + b + i) % 3 == 0){ ans += 1; } } cout << ans << endl; }