結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-30 07:44:42 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 5,000 ms |
| + 579µs | |
| コード長 | 164 bytes |
| 記録 | |
| コンパイル時間 | 818 ms |
| コンパイル使用メモリ | 183,336 KB |
| 実行使用メモリ | 9,844 KB |
| 最終ジャッジ日時 | 2026-10-11 04:31:30 |
| 合計ジャッジ時間 | 1,641 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
コンパイルメッセージ
main.cpp:2:17: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | int n,t,c,d,a,i;main(){std::string s;std::cin>>n;i=n;for(;i--;)std::cin>>t>>s,c+=t=(a=s.size())<(t*=.012)?a:t,d+=a-t;printf("%d %d\n",c,d);}
| ^~~~
ソースコード
#include<bits/stdc++.h>
int n,t,c,d,a,i;main(){std::string s;std::cin>>n;i=n;for(;i--;)std::cin>>t>>s,c+=t=(a=s.size())<(t*=.012)?a:t,d+=a-t;printf("%d %d\n",c,d);}