結果

問題 No.146 試験監督(1)
ユーザー testestesttestestest
提出日時 2015-08-06 03:28:00
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 38 ms / 1,000 ms
コード長 176 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 23,864 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-25 04:08:12
合計ジャッジ時間 1,126 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<stdio.h>
int main(){
long long int n,a,b,s=0,x=1000000007;
scanf("%lld",&n);
while(n--)scanf("%lld%lld",&a,&b),a=a+1>>1,s=(s+a%x*(b%x))%x;
printf("%d",s); 
return 0;
}
0