結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-10-18 18:23:08 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 5,000 ms |
| + 708µs | |
| コード長 | 593 bytes |
| 記録 | |
| コンパイル時間 | 369 ms |
| コンパイル使用メモリ | 93,652 KB |
| 実行使用メモリ | 9,832 KB |
| 最終ジャッジ日時 | 2026-10-11 03:35:02 |
| 合計ジャッジ時間 | 1,255 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
#include <iostream>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <algorithm>
#include <cstring>
#include <cstdio>
#include <fstream>
#include <sstream>
using namespace std;
typedef long long ll;
int main(){
int N;
cin >> N;
int ok = 0, ng = 0;
for(int i=0;i<N;i++){
int T;
string S;
cin >> T >> S;
int tmp = min((int)S.size(), 12 * T / 1000);
ok += tmp;
ng += S.size() - tmp;
}
cout << ok << " " << ng << endl;
return 0;
}