結果
問題 | No.682 Average |
ユーザー |
![]() |
提出日時 | 2018-06-26 17:28:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 2,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 2,080 ms |
コンパイル使用メモリ | 191,800 KB |
最終ジャッジ日時 | 2025-01-06 11:37:12 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main(){ cin.tie(0); ios::sync_with_stdio(false); int a,b,ans = 0; cin >> a >> b; for(int i = a; i <= b; ++i){ if((a + b + i) % 3 == 0) ans++; } cout << ans << endl; return 0; }