結果
| 問題 | No.682 Average |
| コンテスト | |
| ユーザー |
mag
|
| 提出日時 | 2020-07-13 04:00:13 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 355µs | |
| コード長 | 377 bytes |
| 記録 | |
| コンパイル時間 | 933 ms |
| コンパイル使用メモリ | 181,532 KB |
| 実行使用メモリ | 9,968 KB |
| 最終ジャッジ日時 | 2026-09-19 19:31:47 |
| 合計ジャッジ時間 | 2,245 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
#define rep2(i, a, n) for(int i = (a); i < (n); i++)
#define rep(i, n) rep2(i,0,n)
int main(){
cin.tie(nullptr);ios_base::sync_with_stdio(false);
int a,b;
cin>>a>>b;
int c=a+b,cnt=0;
rep2(i,a,b+1){
if((c+i)%3==0){
//cout<<a<<" "<<b<<" "<<i<<endl;
cnt++;
}
}
cout<<cnt<<endl;
}
mag