結果

問題 No.146 試験監督(1)
ユーザー Mcpu3
提出日時 2018-06-28 16:33:54
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 167 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 28,416 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 23:29:35
合計ジャッジ時間 923 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 3
権限があれば一括ダウンロードができます

ソースコード

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+=(c+1)/2*d;
	}
	printf("%ld",s);
	return 0;
}
0