結果

問題 No.35 タイパー高橋
ユーザー FVRChan
提出日時 2017-07-27 10:28:01
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 306 bytes
コンパイル時間 943 ms
コンパイル使用メモリ 57,616 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-10 02:01:30
合計ジャッジ時間 1,409 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<algorithm>
#include<utility>
using namespace std;
int main(void){
	int n,t,mozi,u,ok=0,out=0;
	cin>>n;
	string s;
	for(int i=0;i<n;i++){
		cin>>t>>s;
		mozi=12*t/1000;
		u=s.size()-mozi;
		if(u<0)u=0;
		ok+=s.size()-u;
		out+=u;
	}
	cout<<ok<<" "<<out<<endl;
}
0