解題心得
沒有心得。
程式碼
#include <iostream> using namespace std; int main() { int t, n, m, x, y; while (cin >> t && t) { cin >> n >> m; while (t--) { cin >> x >> y; if (x > n && y > m) cout << "NE" << endl; else if (x < n && y > m) cout << "NO" << endl; else if (x > n && y < m) cout << "SE" << endl; else if (x < n && y < m) cout << "SO" << endl; else cout << "divisa" << endl; } } return 0; }
沒有留言:
張貼留言