Submission #00019
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include<bits/stdc++.h> using namespace std; int main(){ int n, i, j, len; string w[40]; while (cin >> n, n){ for (i = 0; i < n; i++) cin >> w[i]; for (i = 0; i < n; i++){ len = 0; j = i; while (len < 31){ len += w[j].size(); j++; } if (len == 31) break ; } if (len == 31) cout << i + 1 << endl; } } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - 短句 |
ユーザー名 | ei1409 |
投稿日時 | 2016-03-30 13:23:54 |
言語 | C++ |
状態 | Wrong Answer |
得点 | 0 |
ソースコード長 | 374 Byte |
最大実行時間 | 14 ms |
最大メモリ使用量 | 476 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 15 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
B1 | WA | 14 ms | 476 KB |
1
|
B2 | WA | 12 ms | 456 KB |
1
|
B3 | WA | 13 ms | 440 KB |
1
|
B4 | WA | 12 ms | 424 KB |
1
|