結果
問題 | No.35 タイパー高橋 |
ユーザー |
![]() |
提出日時 | 2024-11-20 14:27:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 5,000 ms |
コード長 | 471 bytes |
コンパイル時間 | 2,132 ms |
コンパイル使用メモリ | 191,812 KB |
最終ジャッジ日時 | 2025-02-25 05:31:31 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){int N;cin >> N;int miss = 0;long long total = 0;for (int i = 0; i < N; i++){long long T;string S;cin >> T >> S;int S_N = S.size();total += S_N;long long type_count = (12 * T / 1000);if (type_count < S_N){miss += S_N - type_count;}}cout << total - miss << " "<< miss;}