結果

問題 No.146 試験監督(1)
ユーザー HimatsubushinHimatsubushin
提出日時 2021-07-21 09:02:42
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 227 bytes
コンパイル時間 555 ms
コンパイル使用メモリ 23,668 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-24 13:01:36
合計ジャッジ時間 1,995 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>

int main() {
	int t, s, n, i, a = 0;

	scanf("%d", &t);

	for (i = 0; i < t; i++) {
		scanf("%d %d", &s, &n);
		a += (s / 2 + s % 2) * n;
	}

	printf("%d\n", a);

	return EXIT_SUCCESS;
}
0