結果

問題 No.35 タイパー高橋
ユーザー Naoki00712Naoki00712
提出日時 2023-06-01 13:25:59
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 418 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 28,132 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-28 02:03:39
合計ジャッジ時間 1,053 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>

int main()
{

	int N;
	scanf("%d", &N);

	int success = 0, failure = 0;

	for (int i = 0; i < N; i++)
	{
		int	T;
		scanf("%d", &T);

		char S[101];
		int len;

		scanf("%s%n[^\n]", &S, &len);

		len--;

		int typing = T * 12 / 1000;
		int sub = 0;

		if (typing < len)
		{
			sub = len - typing;
			failure += sub;
		}

		success += len - sub;
	}

	printf("%d %d", success, failure);

	return 0;
}
0