結果
問題 | No.682 Average |
ユーザー | forest3 |
提出日時 | 2020-04-06 12:02:04 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 1,514 ms |
コンパイル使用メモリ | 165,452 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-06 01:57:16 |
合計ジャッジ時間 | 2,262 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int A, B; cin >> A >> B; int ans = 0; for( int i = A; i <= B; i++ ) { int sum = A + B + i; if( sum % 3 ) continue; ans++; } cout << ans << endl; }