結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-28 20:47:18 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 5,000 ms |
| コード長 | 287 bytes |
| コンパイル時間 | 887 ms |
| コンパイル使用メモリ | 77,568 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-30 08:39:17 |
| 合計ジャッジ時間 | 1,381 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <iostream>
using namespace std;
int main() {
int ok = 0, ng = 0;
int n;
cin >> n;
while (n--) {
int t; string s;
cin >> t >> s;
int l = s.size(), c = 12 * t / 1000;
if (l <= c) ok += l;
else {
ok += c;
ng += l - c;
}
}
cout << ok << ' ' << ng << '\n';
}