結果
| 問題 | No.35 タイパー高橋 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-16 17:37:46 |
| 言語 | C (gcc 15.3.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 82µs | |
| コード長 | 618 bytes |
| 記録 | |
| コンパイル時間 | 1,594 ms |
| コンパイル使用メモリ | 38,144 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-09-16 17:37:50 |
| 合計ジャッジ時間 | 2,611 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <stdio.h>
#include <string.h>
int main(void)
{
int n;
int t[1000] = {0};
char s[1000][101];
int total = 0;
int success = 0;
double passtime = 0.0;
int str_long;
int i, j;
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d %s", &t[i], &s[i][0]);
for (i = 0; i < n; i++) {
str_long = strlen(s[i]);
total += str_long;
passtime = 0;
for (j = 0; j < str_long; j++) {
passtime += (1000 / 12.0);
if (!((j + 1) % 3))
passtime = (j + 1) / 3 * 250;
if (passtime > (double)t[i]) {
break;
}
success++;
}
}
printf("%d %d\n", success, total - success);
return 0;
}