P14518 [NFLSPC #8] APLSPC

Background

Welcome everyone to SFLSPC! ![](https://cdn.luogu.com.cn/upload/image_hosting/f093yegt.png) At the Antarctica Penguin Language School, the penguins train every year in how to squeeze code into fewer lines and how to push constant factors down. There is an "oo" penguin that is a spy sent by the Arctic Polar Bear Language School! It has already infiltrated this contest and tries to turn APLS into a colony of polar bears! There is a hardworking and brave penguin that not only foiled the evil Arctic penguin's subversion plan, but also created all the testdata of APLSPC. Say it: thank you, penguin. There is a great penguin; it is very great and is the emperor of the Antarctica Penguin Language School. There is a "du-du" penguin; it is very du-du. It sent you the Du-du-du Grand Study and asked you to study it. ::::info[Click to read] (The original block is a long, deliberately absurd wall of Chinese characters written without punctuation: excerpts from the classical essays "On the Six States" (六国论) and "Epang Palace Rhapsody" (阿房宫赋), mixed with internet copypasta about OI training and keyboard shortcuts for typing the syllable "du". It is reproduced verbatim below and carries no algorithmic meaning.) 已完成今日六国破灭非兵不利战不善弊在赂秦赂秦而力亏破灭之道也或曰六国互丧率赂秦耶曰不赂者以赂者丧盖失强援不能独完故曰弊在赂秦也秦以攻取之外小则获邑大则得城较秦之所得与战胜而得者其实百倍诸侯之所亡与战败而亡者其实亦百倍则秦之所大欲诸侯之所大患固不在战矣思厥先祖父暴霜露斩荆棘以有尺寸之地子孙视之不甚惜举以予人如弃草芥今日割五城明日割十城然后得一夕安寝起视四境而秦兵又至矣然则诸侯之地有限暴秦之欲无厌奉之弥繁侵之愈急故不战而强弱胜负已判矣至于颠覆理固宜然古人云以地事秦犹抱薪救火薪不尽火不灭此言得之齐人未尝赂秦终继五国迁灭何哉与嬴而不助五国也五国既丧齐亦不免矣燕赵之君始有远略能守其土义不赂秦是故燕虽小国而后亡斯用兵之效也至丹以荆卿为计始速祸焉赵尝五战于秦二败而三胜后秦击赵者再李牧连却之洎牧以谗诛邯郸为郡惜其用武而不终也且燕赵处秦革灭殆尽之际可谓智力孤危战败而亡诚不得已向使三国各爱其地齐人勿附于秦刺客不行良将犹在则胜负之数存亡之理当与秦相较或未易量呜呼以赂秦之地封天下之谋臣以事秦之心礼天下之奇才并力西向则吾恐秦人食之不得下咽也悲夫有如此之势而为秦人积威之所劫日削月割以趋于亡为国者无使为积威之所劫哉夫六国与秦皆诸侯其势弱于秦而犹有可以不赂而胜之之势苟以天下之大下而从六国破亡之故事是又在六国下矣六王毕四海一蜀山兀阿房出覆压三百余里隔离天日骊山北构而西折直走咸阳二川溶溶流入宫墙五步一楼十步一阁廊腰缦回檐牙高啄各抱地势钩心斗角盘盘焉囷囷焉蜂房水涡矗不知其几千万落长桥卧波未云何龙复道行空不霁何虹高低冥迷不知西东歌台暖响春光融融舞殿冷袖风雨凄凄一日之内一宫之间而气候不齐妃嫔媵嫱王子皇孙辞楼下殿辇来于秦朝歌夜弦为秦宫人明星荧荧开妆镜也绿云扰扰梳晓鬟也渭流涨腻弃脂水也烟斜雾横焚椒兰也雷霆乍惊宫车过也辘辘远听杳不知其所之也一肌一容尽态极妍缦立远视而望幸焉有不得见者三十六年燕赵之收藏韩魏之经营齐楚之精英几世几年摽掠其人倚叠如山一旦不能有输来其间鼎铛玉石金块珠砾弃掷逦迤秦人视之亦不甚惜嗟乎一人之心千万人之心也秦爱纷奢人亦念其家奈何取之尽锱铢用之如泥沙使负栋之柱多于南亩之农夫架梁之椽多于机上之工女钉头磷磷多于在庾之粟粒瓦缝参差多于周身之帛缕直栏横槛多于九土之城郭管弦呕哑多于市人之言语使天下之人不敢言而敢怒独夫之心日益骄固戍卒叫函谷举楚人一炬可怜焦土呜呼灭六国者六国也非秦也族秦者秦也非天下也嗟乎使六国各爱其人则足以拒秦使秦复爱六国之人则递三世可至万世而为君谁得而族灭也秦人不暇自哀而后人哀之人哀之而不鉴之亦使后人而复哀后人也您好我是一个高一学生在上海以前学过python和一些基础算法我现在自学了C++的所有语法包括指针准备继续学习算法虽然起步较晚但有信心参加算法竞赛比如信息学奥赛并拿奖我知道您很厉害不知道您是否有兴趣当我老师我不会支付任何费用您只需要给我出题然后评价我的解答分享一些竞赛技巧我在那里一坐他的爷爷奶奶先给我磕头爹妈给我磕一家人全磕完了小孩恭恭敬敬的给我磕大头如来如如如来了吗如来吗他真来了吗如来到底来没来如来我说如来他真来了吗如来你看来没来如来中国人认为宇宙万法的那个源头它是什么它是如如对吧所以这个词儿叫如来我见到如来这次有秘密如来如来了吗战术后撤如来吗他真来了吗女口来到底来没来女口来我说如来突然激动他真来了吗女口来你看看来没来女口来他很厉害他不是一个有形的所以你读心经心经里面讲啊什么官司在博大精深般若波罗蜜多时照见五蕴皆空注意不生不灭不垢不净不增不减如如不动所以万物生于有有生于无是这样说滴吧他不是个实体所以我一读我就知道是潜伏在西方的一个纯真的中国人紫题代表基础黑题代表拔高看起来都是题但背后的逻辑完全不同在信竞的整个学习体系里紫题是地基黑题是尖顶孩子一下子从紫题跳到黑题中间那一大段蓝题绿题橙题的梯子直接跳过最后不是卡题卡心态就是掉进盲目刷题的陷阱里根本不知道自己到底在学啥很多孩子一看到紫题自己能做就觉得太简单了不值得花时间于是跳过不练转头冲向黑题初期打基础刷紫题掌握基本算法和数据结构中期攻克常见题型刷绿题橙题建立题感后期黑题精做冲刺省选练综合练速度练稳定性你说得对但是原根是一个数学符号设m是正整数a是整数若a模m的阶等于φ(m)则称a为模m的一个原根假设一个数g是P的原根那么g^imodP的结果两两不同且有1

Description

You need to write a piece of code that, for the required languages, satisfies: 1. Under that language's compile command, it runs normally and prints itself; 2. It does not contain any keyword of that language under whole-word matching (if you do not know what whole-word matching is, please refer to the "Judging Details" section). Both requirements must hold for both C++ and Python. That is, this code must be valid C++ and valid Python at the same time, and satisfy the above requirements. Subject to this, your code should be as short as possible. If your code satisfies all conditions and its length does not exceed 250 B, you will get $100$ points. If some conditions are not satisfied, you can still get some points; see the scoring method for details. **Note that we will take measures so that there is no source code in the running directory when your code runs. You cannot and should not complete the task by calling the source file or any similar means.** **If you are not familiar with the syntax, you can visit [python.org](https://www.python.org/) or [cppreference.com](https://cppreference.com/) for related information.**

Input Format

None.

Output Format

Since Luogu does not support judging for this problem, please go to [hydro](https://hydro.ac/d/NFLSPC8/p/1) to submit; no user registration is needed. After getting the judging result of your submission, please click the "Status" column of test point 1, and copy the string after `token:[REDACTED] (excluding spaces) in the popup that appears, as the token of this submission. After that, please submit a piece of code on Luogu that prints: the first line is the token and the score you got, separated by one space; from the second line on, the code you submitted on hydro, with LF line endings. For example: ``` aaaabbbbccccdddd0000111122223333aaaabbbbccccdddd0000111122223333 100 main() {} ``` You can modify your code directly by adding at the beginning statements that print the token and the score.

Explanation/Hint

### Judging Details **The following are the judging details of the submission entry on [hydro](https://hydro.ac/d/NFLSPC8/p/1), not the judging details of this problem.** Your code must not contain non-ASCII characters; otherwise the result is undefined. First, all line breaks in your code are forcibly replaced by CRLF (`\r\n`), so one line break occupies two bytes. Then, the judge calls the following commands to run your code: ```bash /usr/bin/g++ code.cpp -std=c++2a -O2 -o code && ./code ``` ```bash python3 code.cpp ``` Then, the judge uses the following command to determine whether your code prints itself: ```bash diff --strip-trailing-cr code.cpp out ``` This command treats a trailing CRLF as LF, that is, your code does not need to care about special line breaks when printing itself. Apart from that, this command performs a completely strict comparison, that is, **trailing whitespace such as trailing spaces must also be exactly identical**. Finally, the judge looks up whether your code contains a keyword in the keyword list, using whole-word matching. Whole-word matching is defined as follows: neither the character right before nor the character right after the match may be a digit, a letter, or an underscore. For example, `int` can match `(int)`, but cannot match `print`. The keyword lists are given at the end of the problem. **Note in particular that the stated time limit is meaningless; the actual limit is 1000 ms. If your code runs longer than 1000 ms it will be forcibly terminated, but the running time and memory will not be reflected in the judging result.** ### Scoring Define your preliminary score $s_0$: - Regardless of whether the code contains keywords, if your code is valid C++ code and prints itself when run as C++, but is not valid Python code, then $s_0=2$. - Regardless of whether the code contains keywords, if your code is valid both as C++ and as Python and prints itself when run as C++, but not when run as Python, then $s_0=10$. - Regardless of whether the code contains keywords, if your code is valid both as C++ and as Python and prints itself in both languages, let $x$ be the length of your code; then $$ s_0=f(x)= \begin{cases} 20&(x\ge10^4)\\ 45-\frac{x}{400}&(2000\le x