# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
838038 | dugersuren | scanf 함수 4 (BSC_0_6) | C++14 | 1 ms | 300 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|---|---|---|---|
Fetching results... |