Skip to content

Commit 1973f6c

Browse files
committed
重排C解决方案
1 parent eea4277 commit 1973f6c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
| 3 | [nocat](https://github.com/InvoluteHell/ThreeKeysProgramming/tree/master/nocat) | 36 Bytes | PHP | make PHP greate again!|
2828
| 4 | [MoTIEdsuNe](https://github.com/InvoluteHell/ThreeKeysProgramming/tree/master/MoTIEdsuNe)| 85 Bytes | Ruby | 大概还能再压,但是懒 |
2929
| 5 | [MistEO](https://github.com/InvoluteHell/ThreeKeysProgramming/tree/master/misteo) | 91 Bytes | Bash | 好耶又超过鼹鼠了 |
30+
| 5 | [satgo1546](https://github.com/InvoluteHell/ThreeKeysProgramming/tree/master/satgo1546) | 91 Bytes | C | C语言你得给劲儿啊 |
3031
| 6 | [鼹鼠](https://github.com/InvoluteHell/ThreeKeysProgramming/tree/master/%E9%BC%B9%E9%BC%A0) | 103 Bytes | JavaScript | 不能被玛丽这么轻松就 |
3132
| 7 | [FiveYellowMice](https://github.com/InvoluteHell/ThreeKeysProgramming/tree/master/FiveYellowMice) | 111 bytes | Ruby | 大概还能再压,但是懒 |
3233
| 8 | [Jack-Works](https://github.com/InvoluteHell/ThreeKeysProgramming/tree/master/Jack-Works) | 126 bytes | JavaScript | |

satgo1546/c.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d;r;t;T;main(){d='@@^('^',,;`',r='*Dr@'^'}d^/',t='_@_@'^';,-/',T='!';D(&d);}
1+
_='@@^('^',,;`',r='*~r@'^'}^^/',t='_@_@'^';,-/',$='!';main(){D(&_);}

satgo1546/readme.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
代码 = 76字节
2-
编译命令的不平庸部分 = 23字节
1+
代码 = 68字节
2+
<br>编译命令的不平庸部分 = 23字节
3+
34
```sh
4-
cc c.c -DD=`tr .-_ d-~<<<:?t=`
5+
cc c.c -DD=`tr %-_ [-~<<<:?t=`
56
# ^^^^^^^^^^^^^^^^^^^^^^^
67
```
78
8-
用了gcc的多字符字符字面量,认定int为4字节,滥用了内存排布,故为UB,必须在特定编译器和环境下才能正确输出。
9+
用了gcc的多字符字符字面量,\$可作标识符,认定int为4字节,小端序。关键是滥用了内存排布,故为UB,必须在特定编译器和环境下才能正确输出。
910
1011
即使豁免了main,也躲不过printf等一众函数名。C++有cerr,但#include <iostream>,emm……
1112

0 commit comments

Comments
 (0)