結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-10-18 18:23:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 593 bytes |
| コンパイル時間 | 766 ms |
| コンパイル使用メモリ | 71,940 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-30 09:26:09 |
| 合計ジャッジ時間 | 1,299 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#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;
}