結果

問題 No.35 タイパー高橋
ユーザー くれちーくれちー
提出日時 2016-08-25 23:14:07
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 339 bytes
コンパイル時間 1,544 ms
コンパイル使用メモリ 24,212 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-07 21:50:38
合計ジャッジ時間 1,052 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
#include <string.h>

int main() {
	char s[101];
	int n, t, c = 0, w = 0, i;

	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d %s", &t, &s);
		if (strlen(s) <= 12 * t / 1000) {
			c += strlen(s);
		}
		else {
			c += 12 * t / 1000;
			w += strlen(s) - 12 * t / 1000;
		}
	}

	printf("%d %d\n", c, w);
	return 0;
}
0