結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
Yut176
|
| 提出日時 | 2016-10-04 20:31:48 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 541 bytes |
| コンパイル時間 | 584 ms |
| コンパイル使用メモリ | 72,964 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-21 16:47:57 |
| 合計ジャッジ時間 | 1,183 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<string>
#include<sstream>
#include<cmath>
using namespace std;
int main(){
int n;
cin >> n;
int t;
string s;
int cnt[2] = {0,0};
double tmp = 1000 / 12;
for(int i=0; i<n; i++){
cin >> t >> s;
int a = 12 * t / 1000;
if( a >= s.size() ) cnt[0]+= s.size();
else{
cnt[0] += a;
cnt[1] += s.size()-a;
}
}
cout << cnt[0] << " " << cnt[1] << endl;
return 0;
}
Yut176