結果

問題 No.35 タイパー高橋
ユーザー zaichu
提出日時 2015-12-28 02:38:20
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 399 bytes
コンパイル時間 1,282 ms
コンパイル使用メモリ 160,036 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 07:33:51
合計ジャッジ時間 1,674 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
	int n;
	cin >> n;
	int moji_size = 0,misstype = 0;
	int time;
	string type;
	while(n != 0){
		cin >> time >> type;
		double typetime = 12 * time * 0.001;
		moji_size += type.size();
		if(type.size() > (int)typetime)	misstype += type.size() - (int)typetime;
		n--;
	}
	cout << moji_size - misstype << " " << misstype << endl;
	return 0;
}	
0