QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#82457#46. Piratesint2330 2ms3500kbC++14257b2023-02-27 21:10:032023-02-27 21:10:05

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-02-27 21:10:05]
  • 评测
  • 测评结果:0
  • 用时:2ms
  • 内存:3500kb
  • [2023-02-27 21:10:03]
  • 提交

answer

#include<iostream>
using namespace std;
int c[255],mas;
string s;
int main(){
	cin>>s;
	for(int i=0;i<s.length();i++){
		c[s[i]]++;
	}
	for(int i=0;i<=255;i++){
		if(c[mas]<c[i]){
			mas=i;
		}
	}
	cout<<char(mas)<<" "<<c[mas];
	return 0;
} 

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 2ms
memory: 3320kb

input:

1
a

output:

1 1

result:

wrong answer 1st lines differ - expected: 'a 1', found: '1 1'

Test #2:

score: 0
Wrong Answer
time: 1ms
memory: 3472kb

input:

50
hpdoypydsjjbrflbqehxgvyyyqhtzsawrlpfgpwztepgsapffw

output:

0 1

result:

wrong answer 1st lines differ - expected: 'p 6', found: '0 1'

Test #3:

score: 0
Wrong Answer
time: 2ms
memory: 3352kb

input:

50
ekxzicouuxfoaafacrevbzrkjqnzauhcguihkntnilgiphgase

output:

0 1

result:

wrong answer 1st lines differ - expected: 'a 5', found: '0 1'

Test #4:

score: 0
Wrong Answer
time: 2ms
memory: 3324kb

input:

50
lwqahlveuyleogcdgpshnkeqkmlrnctvymyjuablpvgnitclxo

output:

0 1

result:

wrong answer 1st lines differ - expected: 'l 6', found: '0 1'

Test #5:

score: 0
Wrong Answer
time: 2ms
memory: 3344kb

input:

50
ygrmrrfkwbkorubwjxqxzeprbtfuhlvvrpqznkuhvjbokuqtsr

output:

0 1

result:

wrong answer 1st lines differ - expected: 'r 7', found: '0 1'

Test #6:

score: 0
Wrong Answer
time: 1ms
memory: 3292kb

input:

50
pqntqusybvefkspypzqoqspqzimkmlkknhzmbwaafjdyemvcvg

output:

0 1

result:

wrong answer 1st lines differ - expected: 'q 5', found: '0 1'

Test #7:

score: 0
Wrong Answer
time: 2ms
memory: 3332kb

input:

100
zmcydqewcegjhihditaigyjdcfskgispkutzqbbdhfegynhbrtrnopvfpengixwvzvjriiaabzawgqwoxkvdsqteylruefuiyhcn

output:

0 2

result:

wrong answer 1st lines differ - expected: 'i 8', found: '0 2'

Test #8:

score: 0
Wrong Answer
time: 2ms
memory: 3468kb

input:

100
owkfuohimmfmajqcnoljqcipvrzvrfkifyqjjuxqqqfagclhsyltvfqtlbysgmtuvqsuwaesuyujakfxpthjuojyaaqollepmcpb

output:

0 2

result:

wrong answer 1st lines differ - expected: 'q 9', found: '0 2'

Test #9:

score: 0
Wrong Answer
time: 0ms
memory: 3500kb

input:

200
kvirktyytcmbfwsabtbqfzvilpfsgshteqydzprftopcwwswcrnehokavyjscjpaeyqmhokqfsqntjpbvpuievovrfgkwpwepdoiwygybrghatskyfxezfrbhzkbulbvwwrgielieisetpwkgsmkolyttljcbifbawcvcmnvnjakwyothqzlfljlxmmlgbxieldgqdhl

output:

0 2

result:

wrong answer 1st lines differ - expected: 'w 12', found: '0 2'

Test #10:

score: 0
Wrong Answer
time: 2ms
memory: 3336kb

input:

201
fzyivvcgrjqwwzgxhpjivechkodbwpsxjczeokztzmzdefiymyozyqmbveexafysklcdmnockyxsqxonxtaghhlzqmowiabteggbtlxyirzybxomvlchicnfpeanepalzndmcktkzchdiodcrfkiktowdlfrivjrjpetlpivdzbeggykmvkepfrrvvhozsisqkchgmlmj

output:

0 1

result:

wrong answer 1st lines differ - expected: 'z 13', found: '0 1'

Test #11:

score: 0
Wrong Answer
time: 2ms
memory: 3336kb

input:

500
irtdljupgnqevbfzxdtwgogixkuucukrzgliqrfmbapiagzrlufjrnsdzrxzfmpbhazzjuahdrfqrwghpwbdgugozuqmjyapibqrwckaggqcxglpvmlufkjghxfaggzekmmkazjhbzrvnhfzofqrrrgvighqkhgdkmvvimakmfqrppckzkljqhzksolkclureqqadczvnezxkcigroshbgbtnftkgqmywsomimrtnazdldficdmkskbrdtsuhnzhzlfipgbvarwirvznkwmzbyaabiecxrmxhkstbplw...

output:

0 2

result:

wrong answer 1st lines differ - expected: 'z 28', found: '0 2'

Test #12:

score: 0
Wrong Answer
time: 1ms
memory: 3332kb

input:

2
aa

output:

2 1

result:

wrong answer 1st lines differ - expected: 'a 2', found: '2 1'

Test #13:

score: 0
Wrong Answer
time: 2ms
memory: 3352kb

input:

500
lknpfgrsbgkhtiqbervsfpjqhlsohirospfwtsdqxajhdlhcqdxqbfaiqfjbovenbigxreehxdviloprpvdbkcaogkvtrqacieirxfwxypkcsbumaulhoaqnghvgrkhkrioxihczovooeqsianwkffagmgmadvffnaemvarsfdhmrxcwwcssclgahzuhpjkxrzdfljajsghlsjcvzekilegfaioddntzatwudwtxsugyhelutshdslchiymhmkebinngpbqtpybktjyaepjuvgauqzsijbnbrqezifte...

output:

0 2

result:

wrong answer 1st lines differ - expected: 'a 27', found: '0 2'

Test #14:

score: 0
Wrong Answer
time: 2ms
memory: 3320kb

input:

3
xyy

output:

3 1

result:

wrong answer 1st lines differ - expected: 'y 2', found: '3 1'

Test #15:

score: 0
Wrong Answer
time: 2ms
memory: 3348kb

input:

3
aba

output:

3 1

result:

wrong answer 1st lines differ - expected: 'a 2', found: '3 1'

Test #16:

score: 0
Wrong Answer
time: 0ms
memory: 3500kb

input:

10
ktuonxnmrf

output:

0 1

result:

wrong answer 1st lines differ - expected: 'n 2', found: '0 1'

Test #17:

score: 0
Wrong Answer
time: 1ms
memory: 3500kb

input:

10
tjsgrjpndc

output:

0 1

result:

wrong answer 1st lines differ - expected: 'j 2', found: '0 1'

Test #18:

score: 0
Wrong Answer
time: 2ms
memory: 3336kb

input:

10
ktkyfdttcc

output:

0 1

result:

wrong answer 1st lines differ - expected: 't 3', found: '0 1'

Test #19:

score: 0
Wrong Answer
time: 1ms
memory: 3384kb

input:

10
bbatscqewm

output:

0 1

result:

wrong answer 1st lines differ - expected: 'b 2', found: '0 1'

Test #20:

score: 0
Wrong Answer
time: 2ms
memory: 3276kb

input:

10
eptazubsuj

output:

0 1

result:

wrong answer 1st lines differ - expected: 'u 2', found: '0 1'