結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-05 01:12:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 373 bytes |
| コンパイル時間 | 476 ms |
| コンパイル使用メモリ | 58,476 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-14 07:18:37 |
| 合計ジャッジ時間 | 912 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <algorithm>
#include <iostream>
using namespace std;
int main(int argc, const char* argv[])
{
int N;
cin >> N;
int ttype = 0;
int ftype = 0;
for (int i = 0; i < N; i++) {
int T;
string S;
cin >> T >> S;
int tmp = min((12 * T / 1000), (int)S.size());
ttype += tmp;
ftype += S.size() - tmp;
}
cout << ttype << " " << ftype << endl;
return 0;
}