結果
| 問題 |
No.35 タイパー高橋
|
| コンテスト | |
| ユーザー |
Bantako
|
| 提出日時 | 2017-08-22 18:40:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 5,000 ms |
| コード長 | 365 bytes |
| コンパイル時間 | 1,550 ms |
| コンパイル使用メモリ | 166,540 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 04:24:53 |
| 合計ジャッジ時間 | 2,132 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
main.cpp:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
7 | main(){
| ^~~~
ソースコード
#include<bits/stdc++.h>
typedef long long ll;
using namespace std;
int INF = 1e9;
int MOD = 1e9+7;
int cnt,tcnt;
main(){
int N,t;
cin >> N;
for(int i = 0;i < N;i++){
string s;
cin >> t >> s;
cnt += min(12*t/1000,(int)s.length());
tcnt += max(0,(int)s.length()-(12*t/1000));
}
cout << cnt << " " << tcnt << endl;
}
Bantako