跳到正文

休闲·娱乐

CSP2023-J JS 赛区迷惑行为大赏

Jorisy约 65 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月12日
篇幅
约 65 分钟
获赞
3

版本

  1. v1当前

JS-J01081/road.cpp

C++
/*
* File? Typename? Output? Algorithms? Time? Tests?
* RP++!
* By JYqwq. Luogu uid 400269.
* stO qjm zxx lsh cyx xst syr wjx wyy cjld mcw ltj dzh cfz xyc wxr cxz byx zxj yy zzp fqd,et al. Orz
*/
// 10:08 In fact B is so easy I think!
/*
庆历四年春,滕子京谪守巴陵郡。越明年,政通人和,百废具兴。乃重修岳阳楼,增其旧制,刻唐贤今人诗赋于其上,属予作文以记之。
予观夫巴陵胜状,在洞庭一湖。衔远山,吞长江,浩浩汤汤,横无际涯。朝晖夕阴,气象万千。此则岳阳楼之大观也,前人之述备矣。然则北通巫峡,南极潇湘,迁客骚人,多会于此。览物之情,得无异乎?
若夫淫雨霏霏,连月不开,阴风怒号,浊浪排空。日星隐曜,山岳潜形。商旅不行,樯倾楫摧。薄暮冥冥,虎啸猿啼。登斯楼也,则有去国怀乡,忧谗畏讥,满目萧然,感极而悲者矣。
至若春和景明,波澜不惊,上下天光,一碧万顷。沙鸥翔集,锦鳞游泳。岸芷汀兰,郁郁青青。而或长烟一空,皓月千里,浮光跃金,静影沉璧,渔歌互答,此乐何极!登斯楼也,则有心旷神怡,宠辱偕忘,把酒临风,其喜洋洋者矣。
嗟夫!予尝求古仁人之心,或异二者之为,何哉?不以物喜,不以己悲,居庙堂之高则忧其民,处江湖之远则忧其君。是进亦忧,退亦忧,然则何时而乐耶?其必曰:“先天下之忧而忧,后天下之乐而乐”乎。噫!微斯人,吾谁与归?
*/
//[0,100]

本人+默写人+刘明人+游记人+检查人+膜拜人


JS-J01096/bus.cpp

C++
#include<bits/stdc++.h>
using namespace std;
int n,m,k;
//int ma[1005][1005];
//unsigned long long rp=LONG_LONG_MAX-1+LONG_LONG_MAX;
int main(){
    freopen("bus.in","r",stdin);
    freopen("bus.out","w",stdout);
    //ios::sync_with_stdio(false);
    //cin.tie(NULL);
    //cout.tie(NULL);
    //cin>>n>>m>>k;
    //memset(ma,0,sizeof(ma));
    //for(int i = 1;i<=m;i++){
    //    int u,v,a;
    //    cin>>u>>v>>a;
    //    ma[u][v]=a+1;
    //}
    cout<<"-1";
}
//JS-J01096 <--
//JS-S01075
//Well,I can't work out the problem.
//Hope score:100+100+100+0=300(However,I still think that this program is able to get 45 points.I believe that CCF will help me.)
//I'm Grade 9 now and I have no time to learn OI.
//There is lots of things I want to say.
//But...
//It is hard to say.
//Goodbye , OI.
//Here I met you.Here I farewell to you.

//name in luogu : CSP_AK_I

//75+ KB in all.
//sto CCF orz
//std baoliyuyanjinsaisannian orz

//queue <int> brain;
//while(!brain.empty())brain.pop();
//if(brain.empty())printf("My brain is empty.");

//If I were able to kill people who have higher marks than me,I would be the first.
/*
struct person{
    unsigned long long marks;
    string name;
    bool friend operator < (person x,person y)return x.marks>y.marks;
};
void kill(priority_queue<person> &qwq){
    qwq.pop();
    return 0;
}
priority_queue <person> p;
IN();
while(q.front().name!="me")kill(p);
printf("I'm the first.")
*/

// RP++RP++     RP++RP++RP++       RP++          RP++
// RP++   RP++  RP++    RP++       RP++          RP++
// RP++RP++     RP++RP++RP++   RP++RP++RP++  RP++RP++RP++
// RP++RP++     RP++               RP++          RP++
// RP++   RP++  RP++               RP++          RP++

(此处省略一堆 RP++)

游记人+忏悔人+刘明人+抽象人


JS-J00279/uqe.cpp

C++
#include <algorithm>
#include <iostream>
using namespace std;
int gcd(int a , int b)
{
    int j = 1;
    for(int i = 1;i * i <= min(a , b);i++)
        if(a % i == 0 && a % i == 0 && i == i && i >= 0)
            j = i;
    return j;
}
int main()
{
    freopren("uqe.in" ,  "r" , stdin);
    freopren("uqe.out" ,  "w" , stdin);
    int n , m;
    cin >> n >> m;
    for(int i = 1;i <= n;i++)
    {
        int a , b , c;
        cin >> a >> b >> c;
        int derta = b * b - 4 * a * c;
        if(derta < 0)
        {
            cout << "No" << endl;
        }
        if(derta == 0)
        {
            cout << -b / (2 * a);
        }
        if(derta > 0)
        {
            if(gbs(2 * a , -b) == -b)
            {
                cout << "sqrt(" << derta << ")" << "/" << 2 * a / () << endl;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                VVVV

**WARNING:** 内容过长已截断
原文