結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-01-29 02:30:52 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 335 bytes |
| コンパイル時間 | 526 ms |
| コンパイル使用メモリ | 55,864 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-23 03:44:29 |
| 合計ジャッジ時間 | 858 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n;
while (cin>>n) {
int t=0, l=0;
while (n--) {
int s; string c; cin>>s>>c;
int k=c.size();
t+=min(s*12/1000, k);
l+=max(0, k-s*12/1000);
}
cout<<t<<" "<<l<<endl;
}
}
hogeover30