- 博客(3)
- 收藏
- 关注
原创 PAT A1077 Kuchiguse (20 分)
兼顾不匹配以及最短字符串完全匹配两种情况。注意gets函数不能用了。。。#include <iostream>#include <cstring>using namespace std;int main(){ int n; cin >> n; getchar(); char temp[101][257]; string s; int cnt = 0, min_len = 257; for(int i = 0; i < n; i++){
2022-02-24 23:29:22
119
原创 PAT A1073 Scientific Notation (20 分)
原来的思路是调整小数点位置,补0后输出数组这样也太蠢了判断小数点位置,将原来的数组直接输出,输出过程中输出小数点就好了 ~~~#include <iostream>using namespace std; int main(){ char flag; string str; long lon = 100000; char numb[lon]; for(int j = 0; j < lon; j++){ numb[j] = '0';
2022-02-17 12:05:19
297
原创 PAT B1014 福尔摩斯的约会/ A1061 Dating (20 分) 测试点三
仅有测试点3没过原因:日期没对(我是存数组的时候把周三写错了)问题:Sherlock Holmes received a note with some strange strings:Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out that those strange strin...
2022-02-13 22:05:02
655
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅