結果

問題 No.35 タイパー高橋
ユーザー mmn15277198mmn15277198
提出日時 2020-07-30 01:04:53
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 600 bytes
コンパイル時間 1,004 ms
コンパイル使用メモリ 95,516 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-13 08:17:05
合計ジャッジ時間 1,389 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#pragma GCC optimize("Ofast")
#include<iostream>
#include<stdio.h>
#include<algorithm>
#include<vector>
#include<string.h>
#include<math.h>
#include<map>
#include<iomanip>
#include<queue>

using namespace std;

int main(){	
	
   int n;
   cin >> n;
   long long ans1=0,ans2=0;
   for(int i=0;i<n;i++){
   	long long t;
   	string s;
   	cin >> t >> s;
   	long long now2=s.size()-12*t/1000;
   	if(now2<0)now2=0;
   	long long now1=s.size()-now2;
   	
   	//cout << now1 << " " << now2 << endl;
   	
   	ans2+=now2;
   	ans1+=now1;
   	
   }
   cout << ans1 << " " << ans2 << endl;
   	
	return 0;
}
0