結果
| 問題 |
No.427 テレビ
|
| コンテスト | |
| ユーザー |
momoyuu
|
| 提出日時 | 2024-09-29 23:26:52 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 363 bytes |
| コンパイル時間 | 916 ms |
| コンパイル使用メモリ | 90,840 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-09-29 23:26:55 |
| 合計ジャッジ時間 | 1,430 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ll = long long;
ll gcd(ll a,ll b){
if(b) return gcd(b,a%b);
return a;
}
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
ll h,w;
cin>>h>>w;
ll g = gcd(h,w);
h /= g;
w /= g;
if(h==4) cout<<"TATE\n";
else cout<<"YOKO\n";
}
momoyuu