답안 #649219

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
649219 2022-10-09T15:48:40 Z Ghosty_v2 Programiranje (COCI17_programiranje) C++17
24 / 80
982 ms 884 KB
#include <bits/stdc++.h>
using namespace std;
#define ll long long 


int main() {
	ios_base::sync_with_stdio(false); 
	cin.tie(0);

	string s;
	cin>>s;

	int q;
	cin>>q;

	for(int i=0;i<q;i++) {
		int a,b,c,d;
		cin>>a>>b>>c>>d;

		string s1 = "",s2 = "";

		int fdif = (a-b) +1 ;
		s1 += s.substr(a-1,fdif);

		int sdif = (c-d) +1 ;
		s2 += s.substr(c-1,sdif);

		if (s1 == s2)cout<<"DA"<<endl;
		else cout<<"NE"<<endl;

	}


 

	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 340 KB Output isn't correct
2 Correct 2 ms 340 KB Output is correct
3 Incorrect 3 ms 340 KB Output isn't correct
4 Correct 2 ms 340 KB Output is correct
5 Correct 2 ms 340 KB Output is correct
6 Incorrect 982 ms 840 KB Output isn't correct
7 Incorrect 925 ms 828 KB Output isn't correct
8 Incorrect 937 ms 764 KB Output isn't correct
9 Incorrect 821 ms 768 KB Output isn't correct
10 Incorrect 831 ms 884 KB Output isn't correct