Submission #838038

# Submission time Handle Problem Language Result Execution time Memory
838038 2023-08-26T06:03:24 Z dugersuren scanf 함수 4 (BSC_0_6) C++14
100 / 100
1 ms 300 KB
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
//	freopen("input.txt","r",stdin);
//	freopen("output.txt","w",stdout);
 	char x[100];
	 int s=0;//sm=0,n,a[1001],mx;
 	while(scanf("%s", x) == 1){
 		s++;
	}
// 	for(int i=0;i<3;i++)cin>>a[i],sm+=a[i];
// 	mx=sm;
// 	for(int i=3;i<n;i++){
// 		cin>>a[i];
//		sm+=a[i];
//		if(a[i]+a[i-1]+a[i-2]>mx)mx=a[i]+a[i-1]+a[i-2];
//	}
 	printf("%d",s);
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 300 KB Output is correct
5 Correct 0 ms 300 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct