結果

問題 No.35 タイパー高橋
ユーザー dnishdnish
提出日時 2017-01-04 17:47:09
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 355 bytes
コンパイル時間 1,557 ms
コンパイル使用メモリ 145,588 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-22 18:46:10
合計ジャッジ時間 2,067 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define REP(i,N) for(int i=0;i<N;i++)
int main(){
	int N,count=0,sum=0;
	cin>>N;
	int T[N];
	vector<string> S(N);
	REP(i,N){
		cin>>T[i]>>S[i];
		if(1000*S[i].size()/12<=T[i]){
			count+=S[i].size();
		}else{
			count+=T[i]*12/1000;
		}
		sum+=S[i].size();
	}

	cout<<count<<" "<<sum-count<<endl;
	return 0;
}
0