- 博客(10)
- 收藏
- 关注
原创 (class file version 57.0), this version of the Java Runtime only recognizes class file versions up t
把你Mark Directory as source root 中的 .class 文件删除掉即可解决问题
2022-05-28 11:39:48
721
1
原创 python中的字符串是如何比较的
if '100' > '99': print('\'100\'更大')elif '100' < '99': print('\'99\'更大')else: print('相等')if '100' > '1000': print('\'100\'更大')elif '100' < '1000': print('\'1000\'更大')else: print('相等')'99'更大'1000'更大...
2022-04-13 15:28:24
950
原创 1ll的用处
int x = 0x3f3f3f3f; long long y; y = x + x + x; cout << y;结果 -1111638595 说明int类型的数据运算结果仍为int类型 int x = 0x3f3f3f3f; long long y; y = 1LL * (x + x + x); cout << y;结果 -1111638595 因为( x + x + x ) 的结果为int类型,已溢出 int x = 0x3f3f3f3f; l.
2022-02-27 09:28:13
333
原创 java String直接量
String a="hello",b="hello"; System.out.println(a); System.out.println(b); if(a==b)System.out.println("相等\n"); a="hi"; System.out.println(a); System.out.println(b); if(a==b)System.out.println("相等\n"); else System.out.println("不相等\n...
2021-09-26 22:51:02
102
原创 setprecision的注意事项
如果有效数少于要显示的数字,则 setprecision 将舍入,而不是截断数字。另外还需要注意的是,末尾的零将被省略。因此,尽管指定了 setprecision(5),但是 21.40 仍显示为 21.4。
2021-09-17 19:04:12
287
原创 poj 3750 小孩报数问题 最短题解
下面展示一些 内联代码片。#include<iostream>using namespace std;int main(){ int n, w, s, sum, i; char ch, str[64][15]; cin >> n; for (i = 0; i < n; i++)cin >> str[i]; cin >> w >> ch >> s; w--; for (i = 1, sum = 0;;) {
2021-05-23 23:10:41
158
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人