結果

問題 No.35 タイパー高橋
ユーザー FVRChanFVRChan
提出日時 2017-07-27 10:28:01
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 306 bytes
コンパイル時間 600 ms
コンパイル使用メモリ 57,812 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-18 08:46:22
合計ジャッジ時間 1,039 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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