Submission #18691907


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;

#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define FORR2(x,y,arr) for(auto& [x,y]:arr)
#define ALL(a) (a.begin()),(a.end())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
template<class T> bool chmax(T &a, const T &b) { if(a<b){a=b;return 1;}return 0;}
template<class T> bool chmin(T &a, const T &b) { if(a>b){a=b;return 1;}return 0;}
//-------------------------------------------------------


void solve() {
	int i,j,k,l,r,x,y; string s;
	cout<<2500<<endl;
	FOR(y,50) FOR(x,50) cout<<x<<" "<<y<<" "<<endl;
}


int main(int argc,char** argv){
	string s;int i;
	if(argc==1) ios::sync_with_stdio(false), cin.tie(0);
	FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin);
	cout.tie(0); solve(); return 0;
}

Submission Info

Submission Time
Task A - マイニング
User kmjp
Language C++ (GCC 9.2.1)
Score 116972
Code Size 946 Byte
Status AC
Exec Time 34 ms
Memory 3640 KB

Compile Error

./Main.cpp: In function ‘void solve()’:
./Main.cpp:18:6: warning: unused variable ‘i’ [-Wunused-variable]
   18 |  int i,j,k,l,r,x,y; string s;
      |      ^
./Main.cpp:18:8: warning: unused variable ‘j’ [-Wunused-variable]
   18 |  int i,j,k,l,r,x,y; string s;
      |        ^
./Main.cpp:18:10: warning: unused variable ‘k’ [-Wunused-variable]
   18 |  int i,j,k,l,r,x,y; string s;
      |          ^
./Main.cpp:18:12: warning: unused variable ‘l’ [-Wunused-variable]
   18 |  int i,j,k,l,r,x,y; string s;
      |            ^
./Main.cpp:18:14: warning: unused variable ‘r’ [-Wunused-variable]
   18 |  int i,j,k,l,r,x,y; string s;
      |              ^
./Main.cpp: In function ‘int main(int, char**)’:
./Main.cpp:6:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    6 | #define FOR(x,to) for(x=0;x<(to);x++)
      |                            ^
./Main.cpp:27:38: note: in expansion of macro ‘FOR’
   27 |  FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin);
      |                                      ^~~

Judge Result

Set Name test_ALL
Score / Max Score 116972 / 10000000
Status
AC × 100
Set Name Test Cases
test_ALL test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_100.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt, test_29.txt, test_30.txt, test_31.txt, test_32.txt, test_33.txt, test_34.txt, test_35.txt, test_36.txt, test_37.txt, test_38.txt, test_39.txt, test_40.txt, test_41.txt, test_42.txt, test_43.txt, test_44.txt, test_45.txt, test_46.txt, test_47.txt, test_48.txt, test_49.txt, test_50.txt, test_51.txt, test_52.txt, test_53.txt, test_54.txt, test_55.txt, test_56.txt, test_57.txt, test_58.txt, test_59.txt, test_60.txt, test_61.txt, test_62.txt, test_63.txt, test_64.txt, test_65.txt, test_66.txt, test_67.txt, test_68.txt, test_69.txt, test_70.txt, test_71.txt, test_72.txt, test_73.txt, test_74.txt, test_75.txt, test_76.txt, test_77.txt, test_78.txt, test_79.txt, test_80.txt, test_81.txt, test_82.txt, test_83.txt, test_84.txt, test_85.txt, test_86.txt, test_87.txt, test_88.txt, test_89.txt, test_90.txt, test_91.txt, test_92.txt, test_93.txt, test_94.txt, test_95.txt, test_96.txt, test_97.txt, test_98.txt, test_99.txt
Case Name Status Exec Time Memory
test_01.txt AC 34 ms 3596 KB
test_02.txt AC 9 ms 3544 KB
test_03.txt AC 10 ms 3404 KB
test_04.txt AC 14 ms 3464 KB
test_05.txt AC 10 ms 3536 KB
test_06.txt AC 6 ms 3404 KB
test_07.txt AC 13 ms 3580 KB
test_08.txt AC 10 ms 3540 KB
test_09.txt AC 9 ms 3552 KB
test_10.txt AC 10 ms 3640 KB
test_100.txt AC 8 ms 3584 KB
test_11.txt AC 7 ms 3540 KB
test_12.txt AC 8 ms 3464 KB
test_13.txt AC 5 ms 3636 KB
test_14.txt AC 10 ms 3624 KB
test_15.txt AC 9 ms 3640 KB
test_16.txt AC 11 ms 3544 KB
test_17.txt AC 8 ms 3536 KB
test_18.txt AC 9 ms 3624 KB
test_19.txt AC 9 ms 3392 KB
test_20.txt AC 9 ms 3408 KB
test_21.txt AC 7 ms 3540 KB
test_22.txt AC 9 ms 3640 KB
test_23.txt AC 9 ms 3476 KB
test_24.txt AC 8 ms 3476 KB
test_25.txt AC 9 ms 3536 KB
test_26.txt AC 14 ms 3464 KB
test_27.txt AC 13 ms 3480 KB
test_28.txt AC 14 ms 3584 KB
test_29.txt AC 11 ms 3408 KB
test_30.txt AC 11 ms 3580 KB
test_31.txt AC 13 ms 3568 KB
test_32.txt AC 7 ms 3572 KB
test_33.txt AC 10 ms 3548 KB
test_34.txt AC 11 ms 3476 KB
test_35.txt AC 10 ms 3540 KB
test_36.txt AC 11 ms 3464 KB
test_37.txt AC 8 ms 3540 KB
test_38.txt AC 10 ms 3584 KB
test_39.txt AC 9 ms 3588 KB
test_40.txt AC 14 ms 3412 KB
test_41.txt AC 9 ms 3408 KB
test_42.txt AC 14 ms 3636 KB
test_43.txt AC 14 ms 3480 KB
test_44.txt AC 11 ms 3548 KB
test_45.txt AC 10 ms 3544 KB
test_46.txt AC 9 ms 3408 KB
test_47.txt AC 9 ms 3636 KB
test_48.txt AC 9 ms 3536 KB
test_49.txt AC 11 ms 3640 KB
test_50.txt AC 9 ms 3536 KB
test_51.txt AC 15 ms 3396 KB
test_52.txt AC 9 ms 3584 KB
test_53.txt AC 10 ms 3584 KB
test_54.txt AC 10 ms 3576 KB
test_55.txt AC 9 ms 3584 KB
test_56.txt AC 9 ms 3396 KB
test_57.txt AC 8 ms 3588 KB
test_58.txt AC 8 ms 3544 KB
test_59.txt AC 8 ms 3592 KB
test_60.txt AC 7 ms 3536 KB
test_61.txt AC 9 ms 3480 KB
test_62.txt AC 8 ms 3544 KB
test_63.txt AC 11 ms 3588 KB
test_64.txt AC 8 ms 3460 KB
test_65.txt AC 8 ms 3624 KB
test_66.txt AC 8 ms 3548 KB
test_67.txt AC 5 ms 3480 KB
test_68.txt AC 8 ms 3536 KB
test_69.txt AC 15 ms 3540 KB
test_70.txt AC 9 ms 3576 KB
test_71.txt AC 11 ms 3620 KB
test_72.txt AC 8 ms 3536 KB
test_73.txt AC 13 ms 3396 KB
test_74.txt AC 13 ms 3480 KB
test_75.txt AC 13 ms 3540 KB
test_76.txt AC 9 ms 3464 KB
test_77.txt AC 13 ms 3480 KB
test_78.txt AC 11 ms 3540 KB
test_79.txt AC 14 ms 3476 KB
test_80.txt AC 10 ms 3408 KB
test_81.txt AC 8 ms 3460 KB
test_82.txt AC 11 ms 3480 KB
test_83.txt AC 17 ms 3476 KB
test_84.txt AC 8 ms 3480 KB
test_85.txt AC 9 ms 3636 KB
test_86.txt AC 9 ms 3464 KB
test_87.txt AC 8 ms 3624 KB
test_88.txt AC 11 ms 3576 KB
test_89.txt AC 9 ms 3480 KB
test_90.txt AC 12 ms 3568 KB
test_91.txt AC 8 ms 3580 KB
test_92.txt AC 10 ms 3620 KB
test_93.txt AC 12 ms 3568 KB
test_94.txt AC 11 ms 3540 KB
test_95.txt AC 9 ms 3624 KB
test_96.txt AC 9 ms 3480 KB
test_97.txt AC 12 ms 3640 KB
test_98.txt AC 9 ms 3536 KB
test_99.txt AC 9 ms 3548 KB