結果
問題 | No.35 タイパー高橋 |
ユーザー | Bantako |
提出日時 | 2017-08-22 18:40:37 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 365 bytes |
コンパイル時間 | 1,361 ms |
コンパイル使用メモリ | 163,212 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-04-23 04:46:53 |
合計ジャッジ時間 | 1,977 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
5,248 KB |
testcase_01 | AC | 3 ms
5,376 KB |
testcase_02 | AC | 3 ms
5,376 KB |
testcase_03 | AC | 4 ms
5,376 KB |
コンパイルメッセージ
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; }