結果

問題 No.682 Average
ユーザー Artemis2718Artemis2718
提出日時 2019-03-25 19:44:27
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 952 ms
コンパイル使用メモリ 28,800 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-09 04:58:18
合計ジャッジ時間 1,068 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void)
{
    int a,b,i,count=0;
    scanf("%d%d",&a,&b);
    for(i=a;i<=b;i++){
        if((a+b+i)%3 == 0){
            count++;
        }
    }
    printf("%d\n",count);
    return 0;
}
0