Submission #4042767


Source Code Expand

#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <cstring>
#include <queue>
#include <functional>
#include <set>
#include <map>
#include <string>
#include <cmath>
#include <cassert>

#define SIZE 100005
 
using namespace std;
typedef long long int ll;
typedef pair <int,int> P;

using namespace std;


int main()
{	
	ll XST, YST, XA, YA, XB, YB, XE, YE;
	scanf("%lld %lld %lld %lld %lld %lld %lld %lld", &XST, &YST, &XA, &YA, &XB, &YB, &XE, &YE);
	ll XSP=300;
	ll XAS=100;
	ll XDS=100;
	ll YSP=300;
	ll YAS=100;
	ll YDS=100;
	double taiseki=(51*51*44*102/240-11*11*44*22/240)*3.141593/10;
	ll tai;
	tai=floor(taiseki);
	ll ASi=1;
	ll BSi=1;
	ll ESi=2;
	ll AS=0;
	ll BS=0;
	ll ES=0;
	ll XP, YP;
	for(ll i=0;i<33;i++){
		//Ani
		XP=XA+45-3*i;
		YP=YA+3*i;
		AS=ASi;
		BS=0;
		ES=0;
		printf("%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld \n", XP,XSP,XAS,XDS,YP,YSP,YAS,YDS,AS,BS,ES);
		
		//Bni
		XP=XB-45+3*i;
		YP=YB;
		AS=0;
		BS=BSi;
		ES=0;
		printf("%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld", XP,XSP,XAS,XDS,YP,YSP,YAS,YDS,AS,BS,ES);
		
		//Eni
		XP=XE;
		YP=YE;
		AS=0;
		BS=0;
		ES=ESi;
		printf("%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld", XP,XSP,XAS,XDS,YP,YSP,YAS,YDS,AS,BS,ES);
	}

}

Submission Info

Submission Time
Task A - シミュレータ問題(予選問題)
User xyzxyzxyz
Language C++14 (GCC 5.4.1)
Score 0
Code Size 1320 Byte
Status WA
Exec Time 1 ms
Memory 128 KiB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:50:104: warning: too many arguments for format [-Wformat-extra-args]
   printf("%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld \n", XP,XSP,XAS,XDS,YP,YSP,YAS,YDS,AS,BS,ES);
                                                                                                        ^
./Main.cpp:58:101: warning: too many arguments for format [-Wformat-extra-args]
   printf("%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld", XP,XSP,XAS,XDS,YP,YSP,YAS,YDS,AS,BS,ES);
                                                                                                     ^
./Main.cpp:66:101: warning: too many arguments for format [-Wformat-extra-args]
   printf("%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld,%lld", XP,XSP,XAS,XDS,YP,YSP,YAS,YDS,AS,BS,ES);
                                                                                                     ^
./Main.cpp:26:92: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unus...

Judge Result

Set Name test_ALL
Score / Max Score 0 / 9000000
Status
WA × 10
Set Name Test Cases
test_ALL subtask_01_01.txt, subtask_01_02.txt, subtask_01_03.txt, subtask_01_04.txt, subtask_01_05.txt, subtask_01_06.txt, subtask_01_07.txt, subtask_01_08.txt, subtask_01_09.txt, subtask_01_10.txt
Case Name Status Exec Time Memory
subtask_01_01.txt WA 1 ms 128 KiB
subtask_01_02.txt WA 1 ms 128 KiB
subtask_01_03.txt WA 1 ms 128 KiB
subtask_01_04.txt WA 1 ms 128 KiB
subtask_01_05.txt WA 1 ms 128 KiB
subtask_01_06.txt WA 1 ms 128 KiB
subtask_01_07.txt WA 1 ms 128 KiB
subtask_01_08.txt WA 1 ms 128 KiB
subtask_01_09.txt WA 1 ms 128 KiB
subtask_01_10.txt WA 1 ms 128 KiB