結果
問題 |
No.2187 三立法和 mod 333
|
ユーザー |
![]() |
提出日時 | 2023-01-14 19:35:02 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 431 bytes |
コンパイル時間 | 6,604 ms |
コンパイル使用メモリ | 171,648 KB |
実行使用メモリ | 13,696 KB |
最終ジャッジ日時 | 2024-12-26 05:02:01 |
合計ジャッジ時間 | 43,392 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 33 |
ソースコード
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #include <string> #include <fstream> #include <sstream> #include <vector> long long cnt[333]; int main(){ for(long long x=1;x<4445;x++){ for(long long y=1;y<4445;y++){ for(long long z=1;z<4445;z++){ if(x*x*x*x+y*y*y*y+z*z*z*z<=4444ll*4444ll*4444ll*4444ll){ cnt[(x*x*x+y*y*y+z*z*z)%333]+=1; } } } } int A;cin>>A; cout<<cnt[A]<<endl; }