結果
問題 |
No.35 タイパー高橋
|
ユーザー |
![]() |
提出日時 | 2016-07-29 00:49:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 377 bytes |
コンパイル時間 | 937 ms |
コンパイル使用メモリ | 55,248 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 18:17:45 |
合計ジャッジ時間 | 1,067 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
#include <iostream> using namespace std; int main() { int N, can_type = 0, cannot_type = 0; cin >> N; while (N--) { int T; string S; cin >> T >> S; int can = min(12 * T / 1000, (int)S.size()); can_type += can; cannot_type += S.size() - can; } cout << can_type << " " << cannot_type << endl; return 0; }