Submission #72699990
Source Code Expand
#include<bits/stdc++.h>
#define int long long
using namespace std;
string s;
int sum=0;
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0);cout.tie(0);
cin>>s;
for(int i=0;i<s.size();i++)
{
if(s[i]=='i'||s[i]=='j')
{
sum++;
}
}
cout<<sum;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Count . |
| User | NingMeng_yang |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 301 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3708 KiB |
Compile Error
./Main.cpp: In function 'int main()':
./Main.cpp:14:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(int i=0;i<s.size();i++)
| ~^~~~~~~~~
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| 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 |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| sample00.txt | AC | 1 ms | 3556 KiB |
| sample01.txt | AC | 1 ms | 3708 KiB |
| sample02.txt | AC | 1 ms | 3416 KiB |
| testcase00.txt | AC | 1 ms | 3548 KiB |
| testcase01.txt | AC | 1 ms | 3556 KiB |
| testcase02.txt | AC | 1 ms | 3556 KiB |
| testcase03.txt | AC | 1 ms | 3552 KiB |
| testcase04.txt | AC | 1 ms | 3428 KiB |
| testcase05.txt | AC | 1 ms | 3556 KiB |
| testcase06.txt | AC | 1 ms | 3528 KiB |
| testcase07.txt | AC | 1 ms | 3620 KiB |
| testcase08.txt | AC | 1 ms | 3548 KiB |
| testcase09.txt | AC | 1 ms | 3552 KiB |
| testcase10.txt | AC | 1 ms | 3640 KiB |
| testcase11.txt | AC | 1 ms | 3628 KiB |
| testcase12.txt | AC | 1 ms | 3620 KiB |