結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-28 20:47:18 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 1,149 ms |
| コンパイル使用メモリ | 145,908 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-03 23:48:43 |
| 合計ジャッジ時間 | 1,827 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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';
}