Submission #2228052
Source Code Expand
#include<bits/stdc++.h> using namespace std; int tim[10000],ans; int main(){ int n,st,en,t1,t2; scanf("%d",&n); for(int i=0;i<n;++i){ scanf("%d:%d",&t1,&t2); st=t1*60+t2; scanf("%d:%d",&t1,&t2); en=t1*60+t2; for(int j=st;j<en;++j){ tim[j]++; } } for(int i=0;i<=3600;++i){ ans=max(ans,tim[i]); } cout<<ans<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - 席が足りない |
User | luogu_bot5 |
Language | C++ (GCC 5.4.1) |
Score | 30 |
Code Size | 423 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 256 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:6:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ ./Main.cpp:8:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d:%d",&t1,&t2); ^ ./Main.cpp:10:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d:%d",&t1,&t2); ^
Judge Result
Set Name | small1 | small2 | large | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 20 | 30 / 30 | 0 / 50 | ||||||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
small1 | small1/00_sample1, small1/10_input00, small1/10_input01, small1/10_input02, small1/10_input03, small1/10_input04, small1/10_input05, small1/10_input06, small1/10_input07, small1/10_input08, small1/10_input09, small1/10_input10, small1/10_input11, small1/10_input12, small1/10_input13, small1/10_input14, small1/10_input15, small1/10_input16, small1/10_input17, small1/10_input18, small1/10_input19, small2/50_sample2, small2/50_sample3, small2/60_input41, small2/60_input42, small2/60_input43, small2/60_input44, small2/60_input45, small2/60_input46, small2/60_input47, small2/60_input48, small2/60_input49, small2/60_input50, small2/60_input51, small2/60_input52, small2/60_input53, small2/60_input54, small2/60_input55, small2/60_input56, small2/60_input57, small2/60_input58, small2/60_input59, small2/60_input60, small2/60_input61, small2/60_input62 |
small2 | small1/00_sample1, small1/10_input00, small1/10_input01, small1/10_input02, small1/10_input03, small1/10_input04, small1/10_input05, small1/10_input06, small1/10_input07, small1/10_input08, small1/10_input09, small1/10_input10, small1/10_input11, small1/10_input12, small1/10_input13, small1/10_input14, small1/10_input15, small1/10_input16, small1/10_input17, small1/10_input18, small1/10_input19, large1/20_input20, large1/20_input21, large1/20_input22, large1/20_input23, large1/20_input24, large1/20_input25, large1/20_input26, large1/20_input27, large1/20_input28, large1/20_input29, large1/20_input30, large1/20_input31, large1/20_input32, large1/20_input33, large1/20_input34, large1/20_input35, large1/20_input36, large1/20_input37, large1/20_input38, large1/20_input39, large1/20_input40 |
large | small1/00_sample1, small1/10_input00, small1/10_input01, small1/10_input02, small1/10_input03, small1/10_input04, small1/10_input05, small1/10_input06, small1/10_input07, small1/10_input08, small1/10_input09, small1/10_input10, small1/10_input11, small1/10_input12, small1/10_input13, small1/10_input14, small1/10_input15, small1/10_input16, small1/10_input17, small1/10_input18, small1/10_input19, small2/50_sample2, small2/50_sample3, small2/60_input41, small2/60_input42, small2/60_input43, small2/60_input44, small2/60_input45, small2/60_input46, small2/60_input47, small2/60_input48, small2/60_input49, small2/60_input50, small2/60_input51, small2/60_input52, small2/60_input53, small2/60_input54, small2/60_input55, small2/60_input56, small2/60_input57, small2/60_input58, small2/60_input59, small2/60_input60, small2/60_input61, small2/60_input62, large1/20_input20, large1/20_input21, large1/20_input22, large1/20_input23, large1/20_input24, large1/20_input25, large1/20_input26, large1/20_input27, large1/20_input28, large1/20_input29, large1/20_input30, large1/20_input31, large1/20_input32, large1/20_input33, large1/20_input34, large1/20_input35, large1/20_input36, large1/20_input37, large1/20_input38, large1/20_input39, large1/20_input40, large2/70_input61, large2/70_input62, large2/70_input63, large2/70_input64, large2/70_input65, large2/70_input66, large2/70_input67, large2/70_input68, large2/70_input69, large2/70_input70, large2/70_input71, large2/70_input72, large2/70_input73, large2/70_input74, large2/70_input75, large2/70_input76, large2/70_input77, large2/70_input78, large2/70_input79, large2/70_input80, large2/70_input81, large2/70_input82 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
large1/20_input20 | AC | 1 ms | 256 KB |
large1/20_input21 | AC | 1 ms | 256 KB |
large1/20_input22 | AC | 1 ms | 256 KB |
large1/20_input23 | AC | 1 ms | 256 KB |
large1/20_input24 | AC | 1 ms | 256 KB |
large1/20_input25 | AC | 1 ms | 256 KB |
large1/20_input26 | AC | 1 ms | 256 KB |
large1/20_input27 | AC | 1 ms | 256 KB |
large1/20_input28 | AC | 1 ms | 256 KB |
large1/20_input29 | AC | 1 ms | 256 KB |
large1/20_input30 | AC | 1 ms | 256 KB |
large1/20_input31 | AC | 1 ms | 256 KB |
large1/20_input32 | AC | 1 ms | 256 KB |
large1/20_input33 | AC | 1 ms | 256 KB |
large1/20_input34 | AC | 1 ms | 256 KB |
large1/20_input35 | AC | 1 ms | 256 KB |
large1/20_input36 | AC | 1 ms | 256 KB |
large1/20_input37 | AC | 1 ms | 256 KB |
large1/20_input38 | AC | 1 ms | 256 KB |
large1/20_input39 | AC | 1 ms | 256 KB |
large1/20_input40 | AC | 1 ms | 256 KB |
large2/70_input61 | AC | 1 ms | 256 KB |
large2/70_input62 | WA | 1 ms | 256 KB |
large2/70_input63 | AC | 1 ms | 256 KB |
large2/70_input64 | AC | 1 ms | 256 KB |
large2/70_input65 | WA | 1 ms | 256 KB |
large2/70_input66 | WA | 1 ms | 256 KB |
large2/70_input67 | AC | 1 ms | 256 KB |
large2/70_input68 | AC | 1 ms | 256 KB |
large2/70_input69 | WA | 1 ms | 256 KB |
large2/70_input70 | AC | 1 ms | 256 KB |
large2/70_input71 | AC | 1 ms | 256 KB |
large2/70_input72 | AC | 1 ms | 256 KB |
large2/70_input73 | WA | 1 ms | 256 KB |
large2/70_input74 | AC | 1 ms | 256 KB |
large2/70_input75 | AC | 1 ms | 256 KB |
large2/70_input76 | AC | 1 ms | 256 KB |
large2/70_input77 | AC | 1 ms | 256 KB |
large2/70_input78 | AC | 1 ms | 256 KB |
large2/70_input79 | AC | 1 ms | 256 KB |
large2/70_input80 | AC | 1 ms | 256 KB |
large2/70_input81 | AC | 1 ms | 256 KB |
large2/70_input82 | WA | 1 ms | 256 KB |
small1/00_sample1 | AC | 1 ms | 256 KB |
small1/10_input00 | AC | 1 ms | 256 KB |
small1/10_input01 | AC | 1 ms | 256 KB |
small1/10_input02 | AC | 1 ms | 256 KB |
small1/10_input03 | AC | 1 ms | 256 KB |
small1/10_input04 | AC | 1 ms | 256 KB |
small1/10_input05 | AC | 1 ms | 256 KB |
small1/10_input06 | AC | 1 ms | 256 KB |
small1/10_input07 | AC | 1 ms | 256 KB |
small1/10_input08 | AC | 1 ms | 256 KB |
small1/10_input09 | AC | 1 ms | 256 KB |
small1/10_input10 | AC | 1 ms | 256 KB |
small1/10_input11 | AC | 1 ms | 256 KB |
small1/10_input12 | AC | 1 ms | 256 KB |
small1/10_input13 | AC | 1 ms | 256 KB |
small1/10_input14 | AC | 1 ms | 256 KB |
small1/10_input15 | AC | 1 ms | 256 KB |
small1/10_input16 | AC | 1 ms | 256 KB |
small1/10_input17 | AC | 1 ms | 256 KB |
small1/10_input18 | AC | 1 ms | 256 KB |
small1/10_input19 | AC | 1 ms | 256 KB |
small2/50_sample2 | WA | 1 ms | 256 KB |
small2/50_sample3 | AC | 1 ms | 256 KB |
small2/60_input41 | AC | 1 ms | 256 KB |
small2/60_input42 | AC | 1 ms | 256 KB |
small2/60_input43 | AC | 1 ms | 256 KB |
small2/60_input44 | AC | 1 ms | 256 KB |
small2/60_input45 | AC | 1 ms | 256 KB |
small2/60_input46 | WA | 1 ms | 256 KB |
small2/60_input47 | WA | 1 ms | 256 KB |
small2/60_input48 | AC | 1 ms | 256 KB |
small2/60_input49 | AC | 1 ms | 256 KB |
small2/60_input50 | WA | 1 ms | 256 KB |
small2/60_input51 | AC | 1 ms | 256 KB |
small2/60_input52 | AC | 1 ms | 256 KB |
small2/60_input53 | AC | 1 ms | 256 KB |
small2/60_input54 | AC | 1 ms | 256 KB |
small2/60_input55 | AC | 1 ms | 256 KB |
small2/60_input56 | AC | 1 ms | 256 KB |
small2/60_input57 | WA | 1 ms | 256 KB |
small2/60_input58 | AC | 1 ms | 256 KB |
small2/60_input59 | AC | 1 ms | 256 KB |
small2/60_input60 | AC | 1 ms | 256 KB |
small2/60_input61 | WA | 1 ms | 256 KB |
small2/60_input62 | WA | 1 ms | 256 KB |