結果

問題 No.35 タイパー高橋
ユーザー Yang33Yang33
提出日時 2015-12-30 16:48:17
言語 C++11
(gcc 11.4.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 421 bytes
コンパイル時間 488 ms
コンパイル使用メモリ 56,164 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-19 12:40:50
合計ジャッジ時間 945 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<iostream>
#include<cstring>
using namespace std;

int main(void)
{
	int i, n, t, len,miss=0, ans=0,cor;
	char s[100];

	cin >> n;
	for(i = 0; i < n; i++){
		cin >> t >> s;
		len = strlen(s);
		cor = 12 * t / 1000;
		if (cor > len) {//全部の文字が打てるとき
			ans += len;
		}else {//全部の文字が打てない時
			ans +=cor;
			miss += len - cor;
		}
	}
	cout << ans << " " << miss;
	return 0;
}
0