1 条题解
-
0
C :
#include <stdio.h> int a, i, r; int main(void) { for (i = 1; i <= 10; i++) { scanf("%d", &a); r += a == 90 ? 1 : 0; } printf("%d\n", r); return 0; }
C++ :
#include<iostream> using namespace std; int main() { int b,s; s=0; for (int i=1;i<=10;i++) { cin>>b; if (b==90) s++; } cout<<s<<endl; return 0; }
Python :
# coding=utf-8 s = input(). split() r = 0 for i in range(0, 10) : r = r + int(int(s[i]) == 90) print(r)
- 1
信息
- ID
- 2491
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者