結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-25 00:01:29 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 483 bytes |
| コンパイル時間 | 649 ms |
| コンパイル使用メモリ | 73,536 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-14 07:34:04 |
| 合計ジャッジ時間 | 1,225 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <string>
using namespace std;
int main(){
int N;
cin >> N;
double t, m;
string s;
int r=0,
n=0;
for(int i=0; i<N; i++) {
cin >> t >> s;
m = (12*t)/1000;
if((int)m < s.length()){
n += s.length() - (int)m;
r += (int)m;
}else{
r += s.length();
}
}
cout << r << " " << n << endl;
}