結果
問題 | No.682 Average |
ユーザー |
![]() |
提出日時 | 2018-04-30 18:51:33 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 148 bytes |
コンパイル時間 | 455 ms |
コンパイル使用メモリ | 53,752 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 23:56:19 |
合計ジャッジ時間 | 1,095 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <iostream> using namespace std; int A,B; int main(){ cin>>A>>B; int t=0; for(int i=A;i<=B;i++) if((A+B+i)%3==0) t++; cout<<t<<endl; }