提出 #49467923


ソースコード 拡げる

#include<bits/stdc++.h>
using namespace std;
#ifdef LOCAL
 #define debug(...) fprintf(stdout, ##__VA_ARGS__)
#else
 #define debug(...) void(0)
#endif
#define int long long
inline int read(){int x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;
ch=getchar();}while(ch>='0'&&ch<='9'){x=(x<<1)+
(x<<3)+(ch^48);ch=getchar();}return x*f;}
#define Z(x) (x)*(x)
#define pb push_back
#define fi first
#define se second
//#define M
//#define mo
//#define N
int n, m, i, j, k, T;

signed main()
{
	#ifdef LOCAL
	  freopen("in.txt", "r", stdin);
	  freopen("out.txt", "w", stdout);
	#endif
//	srand(time(NULL));
//	T=read();
//	while(T--) {
//
//	}
	n = read(); 
	while(n--) i += read(), j += read(); 
	printf(i == j ? "Draw" : (i > j ? "Takahashi" : "Aoki")); 
	return 0;
}

提出情報

提出日時
問題 A - Scoreboard
ユーザ zhangtingxi
言語 C++ 20 (gcc 12.2)
得点 100
コード長 817 Byte
結果 AC
実行時間 1 ms
メモリ 3732 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 13
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 02_handmade_09.txt, 02_handmade_10.txt, 02_handmade_11.txt, 02_handmade_12.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 1 ms 3532 KiB
00_sample_01.txt AC 1 ms 3572 KiB
00_sample_02.txt AC 1 ms 3512 KiB
01_random_03.txt AC 1 ms 3656 KiB
01_random_04.txt AC 1 ms 3596 KiB
01_random_05.txt AC 1 ms 3536 KiB
01_random_06.txt AC 1 ms 3536 KiB
01_random_07.txt AC 1 ms 3728 KiB
01_random_08.txt AC 1 ms 3532 KiB
02_handmade_09.txt AC 1 ms 3616 KiB
02_handmade_10.txt AC 1 ms 3700 KiB
02_handmade_11.txt AC 1 ms 3732 KiB
02_handmade_12.txt AC 1 ms 3576 KiB