結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
daradara_sanma
|
| 提出日時 | 2017-06-30 21:19:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 409 bytes |
| コンパイル時間 | 443 ms |
| コンパイル使用メモリ | 55,392 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-04 18:51:32 |
| 合計ジャッジ時間 | 959 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include<iostream>
#include<string>
#include<cstdio>
using namespace std;
int main() {
int n;
cin >> n;
int c = 0, m = 0;
for (int i = 0; i < n; i++)
{
int t;
string str;
cin >> t >> str;
int max_type = 12 * t / 1000;
if (str.length() < max_type)
{
c += str.length();
}
else
{
c += max_type;
m += str.length() - max_type;
}
}
cout << c << " " << m << endl;
return 0;
}
daradara_sanma