結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-01-11 23:46:29 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 405 bytes |
| コンパイル時間 | 395 ms |
| コンパイル使用メモリ | 56,248 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-21 09:53:55 |
| 合計ジャッジ時間 | 950 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <iostream>
int main()
{
int N; std::cin >> N;
std::pair<int, int> ans;
ans.first = ans.second = 0;
for(int n=0; n<N; n++)
{
int T; std::cin >> T;
std::string S; std::cin >> S;
int L = S.size();
ans.first += (L<=(12*T)/1000 ? L : (12*T)/1000);
ans.second += S.size();
}
ans.second = ans.second - ans.first;
std::cout << ans.first << " " << ans.second << std::endl;
return 0;
}