摘要:
System.out.println(String.format("%.2f",money)); 阅读全文
posted @ 2022-06-07 18:41
智人心
阅读(29)
评论(0)
推荐(0)
摘要:
线程通信 #include <semaphore.h> class Foo { protected: sem_t firstJobDone; sem_t secondJobDone; public: Foo() { sem_init(&firstJobDone, 0, 0); sem_init(&s 阅读全文
posted @ 2022-06-07 10:32
智人心
阅读(39)
评论(0)
推荐(0)
摘要:
vector的插入: vector<int>v; v.insert(v.begin(),val); 阅读全文
posted @ 2022-06-07 10:14
智人心
阅读(23)
评论(0)
推荐(0)
摘要:
用子字符串是过不了的,超时,需要一个一个字符判断 class Solution { public: string removeDuplicates(string s) { int n = s.size(),top = 0; if(n==1)return s; for(int i=0;i<n;i++) 阅读全文
posted @ 2022-06-07 09:20
智人心
阅读(26)
评论(0)
推荐(0)

浙公网安备 33010602011771号