結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-01-30 16:56:19 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 441 bytes |
| 記録 | |
| コンパイル時間 | 379 ms |
| コンパイル使用メモリ | 78,068 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-07 19:00:27 |
| 合計ジャッジ時間 | 635 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>
using namespace std;
int main() {
int n, t;
string str;
cin >> n;
int success = 0;
int failure = 0;
int nc, ntype;
for (int i = 0; i < n; i++) {
cin >> t >> str;
nc = str.size();
ntype = min(nc, 12 * t / 1000);
success += ntype;
failure += nc - ntype;
}
printf("%d %d\n", success, failure);
return 0;
}