标签:image mamicode bsp lse 简单 for info loading cout
今日的简单一题
1 #include<iostream> 2 3 using namespace std; 4 5 int main() { 6 long a = 0, b = 0, c = 0; 7 int n = 0; 8 string judge[10]; 9 cin >> n; 10 for (int i = 0; i < n; ++i) { 11 cin >> a >> b >> c; 12 if (a + b > c) 13 judge[i] = "true"; 14 else 15 judge[i] = "false"; 16 } 17 for (int i = 0; i < n; ++i) { 18 cout << "Case #" << i + 1 << ": " << judge[i] << endl; 19 } 20 return 0; 21 }
标签:image mamicode bsp lse 简单 for info loading cout
原文地址:https://www.cnblogs.com/SCP-514/p/13205067.html