結果

問題 No.146 試験監督(1)
ユーザー Mcpu3Mcpu3
提出日時 2018-08-10 12:46:31
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 36 ms / 1,000 ms
コード長 219 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 28,968 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 13:20:40
合計ジャッジ時間 934 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
4,348 KB
testcase_01 AC 36 ms
4,348 KB
testcase_02 AC 36 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void)
{
	long n,c,d,s=0,i;
	scanf("%ld",&n);
	for(i=0;i<n;i++){
		scanf("%ld%ld",&c,&d);
		s=(s+((c+1)/2%1000000007)*(d%1000000007))%1000000007;
	}
	printf("%ld",s);
	return 0;
}
0