上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: // 1'39" #include <iostream> using namespace std; int main() { string s; cin >> s; for(int i = 6; i <= 9; ++ i) cout << s[i]; cout << "-"; for(int i = 阅读全文
posted @ 2024-08-03 01:11 Frodnx 阅读(17) 评论(0) 推荐(0)
摘要: // 1'35" #include <iostream> using namespace std; int main() { int n; int cnt = 1; while(cin >> n) { if(n == 250) { cout << cnt; break; } else ++ cnt; 阅读全文
posted @ 2024-08-03 01:09 Frodnx 阅读(10) 评论(0) 推荐(0)
摘要: // 2'40" #include <iostream> #include <iomanip> using namespace std; int main() { int n; cin >> n; for(int i = 1; i <= n; ++ i) { char c; double d; ci 阅读全文
posted @ 2024-08-03 01:06 Frodnx 阅读(21) 评论(0) 推荐(0)
摘要: 因为每一列字符数固定,因此只需要根据字符在字符串第i个位置mod n,就可以知道在第几行。最后每一行字符串逆序输出,并补充最后一行的空格即可。 // 17'26" #include <bits/stdc++.h> using namespace std; int main() { int n; st 阅读全文
posted @ 2024-08-03 01:03 Frodnx 阅读(32) 评论(0) 推荐(0)
摘要: ## 22" print("Hello World") print("Hello New World") 阅读全文
posted @ 2024-08-03 00:42 Frodnx 阅读(9) 评论(0) 推荐(0)
摘要: 有点坑的10分题,读题不仔细会WA几次 // 4'58" #include <iostream> #include <iomanip> using namespace std; int main() { int a, b; cin >> a >> b; cout << a << "/"; if(b 阅读全文
posted @ 2024-08-03 00:41 Frodnx 阅读(15) 评论(0) 推荐(0)
摘要: // 26" #include <iostream> using namespace std; int main() { int a, nb; cin >> a >> nb; cout << a * nb; return 0; } 阅读全文
posted @ 2024-08-03 00:04 Frodnx 阅读(5) 评论(0) 推荐(0)
摘要: // 3'42" #include <bits/stdc++.h> using namespace std; int main() { vector<string> v; string str; while(cin >> str) { if(str == ".") break; v.push_bac 阅读全文
posted @ 2024-08-02 23:58 Frodnx 阅读(23) 评论(0) 推荐(0)
摘要: // 6'22" #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<int,int> hash; for(int i = 1; i <= n; ++ i) { int k; cin >> k 阅读全文
posted @ 2024-08-02 23:53 Frodnx 阅读(19) 评论(0) 推荐(0)
摘要: 注意:所谓 n个数字都不相同 是指不同的数字正好是n个。 // 9'14" #include <iostream> #include <set> #include <iomanip> using namespace std; bool func(int i, int n) { set<int> se 阅读全文
posted @ 2024-08-01 21:42 Frodnx 阅读(17) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页