Please sign in first.
提出 #24300117
ソースコード 拡げる
#include<iostream>
#include<vector>
#include<cmath>
#include<string>
#include<algorithm>
#include<map>
#include<utility>
#include<cstdio>
#include<cmath>
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
const long long INF = 1LL<<60;
typedef pair<ll,ll> Pair;
int main(){
ll N;
string S;
cin >> N >> S;
vector<string> n = {"Takahashi","Aoki"};
ll cnt = 0;
for(ll i = 0;i < N;++i){
cnt = i%2;
if(S[i] == '1'){
cout << n[cnt] << endl;
break;
}
}
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Bouzu Mekuri |
| ユーザ | MurATa25 |
| 言語 | C++ (GCC 9.2.1) |
| 得点 | 200 |
| コード長 | 567 Byte |
| 結果 | AC |
| 実行時間 | 9 ms |
| メモリ | 3708 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, example0.txt, example1.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 000.txt | AC | 6 ms | 3520 KiB |
| 001.txt | AC | 2 ms | 3516 KiB |
| 002.txt | AC | 6 ms | 3608 KiB |
| 003.txt | AC | 8 ms | 3664 KiB |
| 004.txt | AC | 9 ms | 3708 KiB |
| 005.txt | AC | 5 ms | 3604 KiB |
| 006.txt | AC | 3 ms | 3528 KiB |
| 007.txt | AC | 6 ms | 3548 KiB |
| 008.txt | AC | 2 ms | 3536 KiB |
| 009.txt | AC | 5 ms | 3692 KiB |
| 010.txt | AC | 5 ms | 3708 KiB |
| example0.txt | AC | 2 ms | 3468 KiB |
| example1.txt | AC | 2 ms | 3412 KiB |