結果

問題 No.682 Average
ユーザー zect518
提出日時 2018-05-28 16:59:31
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 183 bytes
コンパイル時間 1,230 ms
コンパイル使用メモリ 28,800 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 07:46:56
合計ジャッジ時間 779 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>


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

0