結果
問題 | No.337 P versus NP |
ユーザー |
![]() |
提出日時 | 2016-03-03 10:54:38 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 200 bytes |
コンパイル時間 | 252 ms |
コンパイル使用メモリ | 21,888 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 13:42:25 |
合計ジャッジ時間 | 949 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf( "%d%d", &N, &P ); | ~~~~~^~~~~~~~~~~~~~~~~~
ソースコード
// yukicoder 337 (http://yukicoder.me/problems/798)#include<cstdio>#define rep(i,a) for(int i=0;i<(a);++i)int N, P;int main(){scanf( "%d%d", &N, &P );puts( P==N*P?"=":"!=" );return 0;}