結果
問題 | No.35 タイパー高橋 |
ユーザー | sk3388607083 |
提出日時 | 2018-06-21 15:45:54 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 391 bytes |
コンパイル時間 | 140 ms |
コンパイル使用メモリ | 25,268 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-13 07:33:23 |
合計ジャッジ時間 | 671 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,376 KB |
testcase_01 | AC | 2 ms
4,376 KB |
testcase_02 | AC | 2 ms
4,376 KB |
testcase_03 | AC | 2 ms
4,380 KB |
ソースコード
#include<stdio.h> int main(void){ int i, j; int N, T; char S[100]; int wright = 0, miss = 0; scanf("%d", &N); for(i = 0; i < N; i++){ scanf("%d %s", &T, S); j = 0; while(S[j] != '\0') j++; if((T * 12 / 1000) >= j) wright += j; else{ wright += T * 12 / 1000; miss += j - T * 12 / 1000;; } } printf("%d %d\n", wright, miss); return 0; }