| 模型 | 模型答案 | 正确答案 |
|---|---|---|
| 金声玉亮2.0 | ```python # YOUR CODE HERE import sys input = sys.stdin.read data = input().split() N = int(data[0]) takahashi_score = 0 aoki_score = 0 for i in range(N): X = int(data[2 * i + 1]) Y = int(data[2 * i + 2]) takahashi_score += X aoki_score += Y if takahashi_score > aoki_score: print("Takahashi") elif takahashi_score < aoki_score: print("Aoki") else: print("Draw") ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| deepseek-r1 | ```python n = int(input()) sum_t = 0 sum_a = 0 for _ in range(n): x, y = map(int, input().split()) sum_t += x sum_a += y if sum_t > sum_a: print("Takahashi") elif sum_a > sum_t: print("Aoki") else: print("Draw") ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| gpto1 | ```python # YOUR CODE HERE N = int(input()) takahashi_total = 0 aoki_total = 0 for _ in range(N): x_i, y_i = map(int, input().split()) takahashi_total += x_i aoki_total += y_i if takahashi_total > aoki_total: print("Takahashi") elif takahashi_total < aoki_total: print("Aoki") else: print("Draw") ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| gpt-4o-2024-08-06 | ```python # YOUR CODE HERE import sys def main(): input = sys.stdin.read data = input().splitlines() N = int(data[0]) takahashi_total = 0 aoki_total = 0 for i in range(1, N + 1): x, y = map(int, data[i].split()) takahashi_total += x aoki_total += y if takahashi_total > aoki_total: print("Takahashi") elif aoki_total > takahashi_total: print("Aoki") else: print("Draw") if __name__ == "__main__": main() ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| DeepSeek-Coder-V2-Lite-Instruct | ```python # YOUR CODE HERE N = int(input()) Takahashi_score = 0 Aoki_score = 0 for _ in range(N): X_i, Y_i = map(int, input().split()) Takahashi_score += X_i Aoki_score += Y_i if Takahashi_score > Aoki_score: print("Takahashi") elif Aoki_score > Takahashi_score: print("Aoki") else: print("Draw") ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| Meta-Llama-3.1-405B-Instruct-Turbo | ```python import sys def main(): n = int(input()) takahashi_score = 0 aoki_score = 0 for _ in range(n): x, y = map(int, input().split()) takahashi_score += x aoki_score += y if takahashi_score > aoki_score: print("Takahashi") elif takahashi_score < aoki_score: print("Aoki") else: print("Draw") if __name__ == "__main__": main() ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| Meta-Llama-3.1-70B-Instruct-Turbo | ```python # YOUR CODE HERE n = int(input()) takahashi = 0 aoki = 0 for _ in range(n): x, y = map(int, input().split()) takahashi += x aoki += y if takahashi > aoki: print("Takahashi") elif takahashi < aoki: print("Aoki") else: print("Draw") ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| Qwen2-72B-Instruct | ```python n = int(input()) t = 0 a = 0 for i in range(n): x, y = map(int, input().split()) t += x a += y if t > a: print("Takahashi") elif t < a: print("Aoki") else: print("Draw") ``` ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| baichuan4 | ```python # YOUR CODE HERE import sys # Read the number of matches N = int(sys.stdin.readline().strip()) # Initialize scores for both teams takahashi_score = 0 aoki_score = 0 # Read the scores for each match and update the total scores for _ in range(N): match_scores = list(map(int, sys.stdin.readline().strip().split())) takahashi_score += match_scores[0] aoki_score += match_scores[1] # Determine the winner if takahashi_score > aoki_score: print("Takahashi") elif takahashi_score < aoki_score: print("Aoki") else: print("Draw") ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| doubao | ```python N = int(input()) taka_score = 0 aoki_score = 0 for _ in range(N): X, Y = map(int, input().split()) taka_score += X aoki_score += Y if taka_score > aoki_score: print("Takahashi") elif taka_score < aoki_score: print("Aoki") else: print("Draw") ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| gpto1 | ```python # YOUR CODE HERE N = int(input()) takahashi_total = 0 aoki_total = 0 for _ in range(N): x_i, y_i = map(int, input().split()) takahashi_total += x_i aoki_total += y_i if takahashi_total > aoki_total: print("Takahashi") elif takahashi_total < aoki_total: print("Aoki") else: print("Draw") ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| kimi | ```python # YOUR CODE HERE n = int(input()) x = 0 y = 0 for _ in range(n): (a, b) = map(int, input().split()) x += a y += b if x > y: print('Takahashi') elif x < y: print('Aoki') else: print('Draw') ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| minimax | ```python # YOUR CODE HERE N = int(input()) takahashi_score = 0 aoki_score = 0 for _ in range(N): takahashi, aoki = map(int, input().split()) takahashi_score += takahashi aoki_score += aoki if takahashi_score > aoki_score: print("Takahashi") elif takahashi_score < aoki_score: print("Aoki") else: print("Draw") ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| wenxinyiyan | ```python # Read the number of matches N = int(input()) # Initialize scores for both teams takahashi_score = 0 aoki_score = 0 # Read the scores for each match and update the total scores for _ in range(N): X, Y = map(int, input().split()) takahashi_score += X aoki_score += Y # Determine the winner if takahashi_score > aoki_score: print("Takahashi") elif takahashi_score < aoki_score: print("Aoki") else: print("Draw") ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| zhipu | ```python def main(): import sys input = sys.stdin.read data = input().split() N = int(data[0]) takahashi_score = 0 aoki_score = 0 index = 1 for _ in range(N): X = int(data[index]) Y = int(data[index + 1]) takahashi_score += X aoki_score += Y index += 2 if takahashi_score > aoki_score: print("Takahashi") elif takahashi_score < aoki_score: print("Aoki") else: print("Draw") if __name__ == "__main__": main() ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |
| deepseek-v3 | ```python # YOUR CODE HERE # Read the number of matches N = int(input()) # Initialize total scores for both teams total_takahashi = 0 total_aoki = 0 # Loop through each match to accumulate the scores for _ in range(N): X, Y = map(int, input().split()) total_takahashi += X total_aoki += Y # Determine the winner based on the total scores if total_takahashi > total_aoki: print("Takahashi") elif total_aoki > total_takahashi: print("Aoki") else: print("Draw") ``` |
[{"input": "4\n10 2\n10 1\n10 2\n3 2\n", "output": "Takahashi\n", "testtype": "stdin"}, {"input": "6\n5 4\n4 5\n2 4\n1 6\n7 1\n3 2\n", "output": "Draw\n", "testtype": "stdin"}, {"input": "4\n0 0\n10 10\n50 50\n0 100\n", "output": "Aoki\n", "testtype": "stdin"}] |