Submission #00046
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #include<iostream> #include<string.h> using namespace std; main(){ int n; int i,j,k; int number=0,flg=0; char word[100][100]; int len=0; while (1){ cin>>n; if (n==0) break ; for (i=0;i<n;i++){ cin>>word[i]; } for (i=0;flg==0;i++){ for (j=i;flg==0;j++){ len+= strlen (word[j]); if (len==5+7+5+7+7){ number=i+1; flg=1; break ; } if (len>5+7+5+7+7){ len=0; break ; } } } cout<<number<<endl; number=0; flg=0; len=0; } return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - 短句 |
ユーザー名 | ei1412 |
投稿日時 | 2016-03-30 13:56:22 |
言語 | C++ |
状態 | Wrong Answer |
得点 | 0 |
ソースコード長 | 543 Byte |
最大実行時間 | 13 ms |
最大メモリ使用量 | 704 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 15 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
B1 | WA | 12 ms | 476 KB |
1
|
B2 | WA | 13 ms | 704 KB |
1
|
B3 | WA | 11 ms | 672 KB |
1
|
B4 | WA | 11 ms | 644 KB |
1
|