提出 #58677128
ソースコード 拡げる
#include <iostream>
#include <algorithm>
using namespace std;
const int N=1000;
char a[N];
int n;
int main(void)
{
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>a[i];
}
for(int i=1;i<=n;i++)
{
if(a[i]=='.')
{
cout<<i;
return 0;
}
}
cout<<"No";
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Seats |
| ユーザ | WangNeo |
| 言語 | C++ 17 (gcc 12.2) |
| 得点 | 0 |
| コード長 | 371 Byte |
| 結果 | RE |
| 実行時間 | 171 ms |
| メモリ | 3644 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 100 | ||||||||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | sample00.txt, sample01.txt, sample02.txt |
| All | sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt, testcase13.txt, testcase14.txt, testcase15.txt, testcase16.txt, testcase17.txt, testcase18.txt, testcase19.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| sample00.txt | AC | 1 ms | 3488 KiB |
| sample01.txt | WA | 1 ms | 3644 KiB |
| sample02.txt | AC | 1 ms | 3576 KiB |
| testcase00.txt | WA | 1 ms | 3432 KiB |
| testcase01.txt | WA | 1 ms | 3568 KiB |
| testcase02.txt | WA | 1 ms | 3492 KiB |
| testcase03.txt | WA | 1 ms | 3468 KiB |
| testcase04.txt | WA | 1 ms | 3436 KiB |
| testcase05.txt | WA | 1 ms | 3516 KiB |
| testcase06.txt | WA | 1 ms | 3572 KiB |
| testcase07.txt | WA | 1 ms | 3496 KiB |
| testcase08.txt | RE | 171 ms | 3332 KiB |
| testcase09.txt | RE | 73 ms | 3276 KiB |
| testcase10.txt | RE | 72 ms | 3232 KiB |
| testcase11.txt | RE | 72 ms | 3188 KiB |
| testcase12.txt | RE | 73 ms | 3232 KiB |
| testcase13.txt | RE | 72 ms | 3288 KiB |
| testcase14.txt | RE | 71 ms | 3248 KiB |
| testcase15.txt | RE | 71 ms | 3248 KiB |
| testcase16.txt | RE | 71 ms | 3288 KiB |
| testcase17.txt | RE | 71 ms | 3240 KiB |
| testcase18.txt | RE | 71 ms | 3256 KiB |
| testcase19.txt | RE | 72 ms | 3400 KiB |