摘要:
A 读完题总是会楞一下,然后才开始写。 一遍 AC。 const int MAXN = 100 + 10; int n, p, q; char ss[MAXN]; int main() { scanf("%d %d %d", &n, &p, &q); scanf("%s", ss); for (in 阅读全文
摘要:
打得很烂,预计 1500 只拿到了 700,甚至比 VP 打得还要差。 A 一遍 AC。 int main() { int x = read(); if (x % 100 == 0 && x > 0) puts("Yes"); else puts("No"); return 0; } B 一遍 AC 阅读全文
摘要:
A 一遍 AC。 int main() { int a, b, c; cin >> a >> b >> c; for (int i = a; i <= b; ++i) { if (i % c == 0) { cout << i << endl; return 0; } } cout << -1 << 阅读全文
摘要:
A. USB Driver 脑抽了居然升序排序。。愣了几秒才发现 一遍 AC。 const int MAXN = 100 + 10; int n, aa[MAXN]; int main() { std::ios::sync_with_stdio(false); cin.tie(0); cout.ti 阅读全文
摘要:
A. Seismic magnitude scales 一遍 AC。 int a, b; int main() { std::ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin >> a >> b; if (a > b) std::sw 阅读全文
摘要:
A. Tricky Sum 居然没有一眼秒掉。。自闭了 1 到 n 的和很好算,小于等于 n 的所有 2 的幂次之和也很好算,把后面那个东西减两次就做完了。 一遍 AC。 int main() { std::ios::sync_with_stdio(false); cin.tie(0); cout. 阅读全文