摘要:
// 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)
浙公网安备 33010602011771号