結果
問題 | No.35 タイパー高橋 |
ユーザー | mono1977 |
提出日時 | 2016-12-01 12:40:23 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 386 bytes |
コンパイル時間 | 741 ms |
コンパイル使用メモリ | 33,048 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-08-18 11:12:03 |
合計ジャッジ時間 | 823 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,380 KB |
testcase_01 | AC | 2 ms
4,376 KB |
testcase_02 | AC | 2 ms
4,376 KB |
testcase_03 | AC | 2 ms
4,376 KB |
ソースコード
#include<stdio.h> #include<math.h> #include<string.h> int main(){ int n; scanf("%d",&n); int correct=0,incorrect=0; int i,t; char s[101]; for(i=0;i<n;i++){ scanf("%d %s",&t,s); if(floor(12*t/1000)>=strlen(s)){ correct+=strlen(s); }else{ correct+=floor(12*t/1000); incorrect+=strlen(s)-floor(12*t/1000); } } printf("%d %d\n",correct,incorrect); return 0; }