結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-05 01:12:12 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| + 834µs | |
| コード長 | 373 bytes |
| 記録 | |
| コンパイル時間 | 290 ms |
| コンパイル使用メモリ | 73,044 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-26 22:47:16 |
| 合計ジャッジ時間 | 1,141 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}