結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
Respect2D
|
| 提出日時 | 2014-11-21 01:34:56 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 399 bytes |
| コンパイル時間 | 555 ms |
| コンパイル使用メモリ | 63,868 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2025-01-02 19:52:49 |
| 合計ジャッジ時間 | 1,178 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
while(cin >> n){
int sum = 0;
int x = 0;
for(int i = 0; i < n; i++){
int t;
string s;
cin >> t >> s;
sum += s.size();
int calc = floor(t * 12.0 / 1000.0);
x += min(calc, (int)s.size());
}
cout << x << " " << sum - x << endl;
}
}
Respect2D