結果
| 問題 |
No.374 コイン
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-04-18 15:11:27 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 1,062 bytes |
| コンパイル時間 | 1,798 ms |
| コンパイル使用メモリ | 191,168 KB |
| 実行使用メモリ | 19,144 KB |
| 最終ジャッジ日時 | 2025-04-18 15:11:34 |
| 合計ジャッジ時間 | 6,543 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 30 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:38:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
38 | freopen("coin.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
main.cpp:39:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
39 | freopen("coin.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
ソースコード
/*
??????
??????
??????
??????
D P ????
??????
??????
??????
??????
??? l l?
??????
??????
?? OI ??
??????
*/
#include<bits/stdc++.h>
using namespace std;
//#define int long long
//#define eps 1e-9
//#define ENF 1e13
const int N=1e1;
const int mod=1e9+7;
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<<3)+(x<<1)+ch-48;ch=getchar();}
return x*f;
}
void write(int x)
{
if(x<0)putchar('-'),x=-x;
if(x<10)putchar(x+'0');
else write(x/10),putchar(x%10+'0');
}
signed main(){
freopen("coin.in","r",stdin);
freopen("coin.out","w",stdout);
int a=read(),b=read();
if(a<b)cout<<"K";
else cout<<"S";
return 0;
}
// ?????????????AC????
// ?????????????????????????
// ??????????????????
// ????????????????????????????????????
// ???????????????????????????????
// ????????????
// ????????????
// ????????????
// ????????????????????
// ????????????????????
// ????????????????????????????????
// ???????????????????????
// ???????????
// ?????????????
vjudge1