結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
dgd1724
|
| 提出日時 | 2016-09-12 18:19:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 600 bytes |
| コンパイル時間 | 690 ms |
| コンパイル使用メモリ | 74,240 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 04:03:42 |
| 合計ジャッジ時間 | 1,271 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <time.h>
#include <cstdlib>
#include <cmath>
#include <fstream>
#include <iomanip>
int main(void) {
//test用
//std::ifstream in("test.txt");
//std::cin.rdbuf(in.rdbuf());
int N;
std::cin >> N;
int score = 0;
int miss = 0;
for (int i = 0; i < N; i++) {
int T;
std::string S;
std::cin >> T >> S;
int temp = T * 12 / 1000;
if (temp >= S.length()) {
score += S.length();
}
else {
score += temp;
miss += S.length() - temp;
}
}
std::cout << score << " " << miss << std::endl;
}
dgd1724