結果
問題 |
No.682 Average
|
ユーザー |
![]() |
提出日時 | 2021-01-26 22:55:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 270 bytes |
コンパイル時間 | 2,033 ms |
コンパイル使用メモリ | 191,172 KB |
最終ジャッジ日時 | 2025-01-18 08:24:10 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,n) for(ll i=0;i<n;i++) void solve() { int a, b; cin >> a >> b; int cnt=0; for(int i=a;i<=b;i++){ if((a+b+i)%3==0) cnt++; } cout<<cnt<<endl; } signed main(){ solve(); }