結果

問題 No.682 Average
ユーザー neko_the_shadow
提出日時 2019-03-29 16:03:09
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 200 bytes
コンパイル時間 1,258 ms
コンパイル使用メモリ 65,736 KB
最終ジャッジ日時 2025-01-07 00:35:44
ジャッジサーバーID
(参考情報)
judge1 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>

int main() {
    int a, b;
    std::cin >> a >> b;
    int c = 0;
    for (int i = 0; i <= b; i++) {
        if ((a + b + i) % 3 == 0) c++;
    }
    std::cout << c << std::endl;
}
0