結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-12 10:55:35 |
| 言語 | C++11(old_compat) (gcc 12.4.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 5,000 ms |
| + 839µs | |
| コード長 | 505 bytes |
| 記録 | |
| コンパイル時間 | 1,464 ms |
| コンパイル使用メモリ | 167,788 KB |
| 実行使用メモリ | 9,840 KB |
| 最終ジャッジ日時 | 2026-10-11 05:20:21 |
| 合計ジャッジ時間 | 2,309 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int n;
cin >> n;
int tm;
string str;
int ok = 0;
int ng = 0;
for (int i = 0; i < n; i++) {
cin >> tm >> std::ws >> str;
int tp = floor((tm / 1000.0) * 12);
if (str.length() > tp) {
ok += tp;
ng += str.length() - tp;
} else {
ok += str.length();
}
}
cout << ok << " " << ng << endl;
}