摘要: 炸小船!!! from random import randint board = [] for x in range(0, 5): board.append(["O"] * 5) def print_board(board): for row in board: print " ".join(ro 阅读全文
posted @ 2017-10-01 22:49 Isaacgy 阅读(190) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main() { int m, n,s; cin >> m >> n; s = m / n; if (s*n < m) cout << s + 1 << endl; else cout << s << endl; r 阅读全文
posted @ 2017-08-15 21:21 Isaacgy 阅读(215) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main() { int i, j; for (i = 1;i < 20;i++) { for (j = 1;j < 33;j++) { if (i + j + (100 - 5 * i - 3 * j) * 3 = 阅读全文
posted @ 2017-07-27 16:42 Isaacgy 阅读(350) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main() { int n,i; bool flag = true; for (n = 10;n < 100;n++) { for (i = 2;i < n / 2;i++) { if (n%i == 0) fla 阅读全文
posted @ 2017-07-20 20:23 Isaacgy 阅读(205) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main() { int ra; for (int ra = 1;ra <= 50;ra++) { if (4 * ra + 2 * (50 - ra) == 160) cout << 50 - ra << " " 阅读全文
posted @ 2017-07-20 18:49 Isaacgy 阅读(290) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main() { int n, t,s=0; cin >> n >> t; int a[20]; for (int i = 0;i < n;i++) { cin >> a[i]; if (a[i] < t) s++; 阅读全文
posted @ 2017-07-20 18:33 Isaacgy 阅读(159) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main() { int i, j, n, a[100],temp; cin >> n; for (i = 0;i < n;i++) cin >> a[i]; for (i = 0;i < n;i++) { for 阅读全文
posted @ 2017-07-16 23:19 Isaacgy 阅读(272) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main() { int x=1; for (int i = 1;i <= 1992;i++) { x = 1992 * x % 100; } cout << x<<endl; return 0;} 阅读全文
posted @ 2017-07-16 17:22 Isaacgy 阅读(241) 评论(0) 推荐(0)
摘要: 1035 #include<iostream>using namespace std;int main() { int m, n,i,s=0; cin >> m >> n; bool flag = true; for (i = m;i <= n;i++) { if (i % 2 == 0) flag 阅读全文
posted @ 2017-07-15 21:31 Isaacgy 阅读(247) 评论(0) 推荐(0)