結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-23 17:46:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 366 bytes |
| コンパイル時間 | 1,458 ms |
| コンパイル使用メモリ | 166,344 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-25 10:34:16 |
| 合計ジャッジ時間 | 1,865 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
int a = 0, b = 0;
for(int i = 0 ;i < n; i++) {
int t;
string s;
cin >> t >> s;
a += min(12 * t / 1000, (int)s.size());
b += max(0, (int)s.size() - 12 * t / 1000);
}
cout << a << " " << b << '\n';
return 0;
}